X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=mac%2Fmtcpnet.c;h=c1c1fb802869fa0d2e08159a9e14113a2c467003;hb=49d2cf19accb059b3b68d1fc2b78e606a578c3e8;hp=5415fbc6fde116a85c8b48473c538426dbccd74d;hpb=6bb121ecb910115abe2ccba60938d18cbf826934;p=PuTTY.git diff --git a/mac/mtcpnet.c b/mac/mtcpnet.c index 5415fbc6..c1c1fb80 100644 --- a/mac/mtcpnet.c +++ b/mac/mtcpnet.c @@ -410,7 +410,7 @@ Socket mactcp_register(void *sock, Plug plug) static TCPNotifyUPP mactcp_asr_upp; Socket mactcp_new(SockAddr addr, int port, int privport, int oobinline, - int nodelay, Plug plug) + int nodelay, int keepalive, Plug plug) { static struct socket_function_table fn_table = { mactcp_plug, @@ -517,11 +517,13 @@ Socket mactcp_new(SockAddr addr, int port, int privport, int oobinline, ret->next->prev = &ret->next; mactcp.socklist = ret; + sk_addr_free(addr); /* don't need this anymore */ + return (Socket)ret; } Socket mactcp_newlistener(char *srcaddr, int port, Plug plug, - int local_host_only) + int local_host_only, int address_family) { fatalbox("mactcp_newlistener");