miniupnpc/receivedata.c: zero src_addr to silence valgrind

This commit is contained in:
Thomas Bernard 2014-11-13 14:53:50 +01:00
parent 8b22c4d7f4
commit 8d5a9d72da
1 changed files with 1 additions and 0 deletions

View File

@ -81,6 +81,7 @@ receivedata(int socket,
}
#endif /* !defined(_WIN32) && !defined(__amigaos__) && !defined(__amigaos4__) */
#if MINIUPNPC_GET_SRC_ADDR
memset(&src_addr, 0, sizeof(src_addr));
n = recvfrom(socket, data, length, 0,
(struct sockaddr *)&src_addr, &src_addr_len);
#else /* MINIUPNPC_GET_SRC_ADDR */