OpenBSD cvs log

created 2022-05-23T05:56:04Z
begin 2022-05-15T03:54:07Z
end 2022-05-15T09:12:20Z
path src/sys
commits 1

date 2022-05-15T09:12:20Z
author dlg
files src/sys/netinet/in_pcb.c log diff annotate
src/sys/netinet/in_pcb.h log diff annotate
src/sys/netinet/raw_ip.c log diff annotate
src/sys/netinet/udp_usrreq.c log diff annotate
message have in_pcbselsrc copy the selected address to memory provided by the caller.

having it return a pointer to something that has a lifetime managed
by a lock without accounting for it or taking a reference count or
anything like that is asking for trouble. copying the address to
caller provded memory while still inside the lock is a lot safer.

discussed with visa@
ok bluhm@ claudio@