CVSROOT: /cvs Module name: src Changes by: d...@cvs.openbsd.org 2022/05/15 03:12:20
Modified files: sys/netinet : in_pcb.c in_pcb.h udp_usrreq.c raw_ip.c Log 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@