SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
12
net/tcludp/patches/patch-generic_udp_tcl_c
Normal file
12
net/tcludp/patches/patch-generic_udp_tcl_c
Normal file
|
@ -0,0 +1,12 @@
|
|||
Nothing to free when getaddrinfo returns error.
|
||||
|
||||
--- generic/udp_tcl.c.orig Thu Oct 9 07:23:05 2014
|
||||
+++ generic/udp_tcl.c Thu Oct 9 07:23:25 2014
|
||||
@@ -1315,7 +1315,6 @@ UdpMulticast(UdpState *statePtr, Tcl_Interp *interp,
|
||||
|
||||
if (r != 0 ) {
|
||||
Tcl_SetResult(interp, "invalid group name", TCL_STATIC);
|
||||
- freeaddrinfo(result);
|
||||
return TCL_ERROR;
|
||||
} else {
|
||||
memcpy(&mreq6.ipv6mr_multiaddr, &((struct sockaddr_in6*)(result->ai_addr))->sin6_addr,sizeof(mreq6.ipv6mr_multiaddr));
|
Loading…
Add table
Add a link
Reference in a new issue