mirror of https://github.com/wolfSSL/wolfssl.git
commit
b0a51a22a1
|
@ -521,6 +521,9 @@ static INLINE void build_addr(SOCKADDR_IN_T* addr, const char* peer,
|
|||
(void)useLookup;
|
||||
(void)udp;
|
||||
|
||||
if (addr == NULL || peer == NULL)
|
||||
err_sys("invalid arguments to build_addr, addr or peer is NULL");
|
||||
|
||||
memset(addr, 0, sizeof(SOCKADDR_IN_T));
|
||||
|
||||
#ifndef TEST_IPV6
|
||||
|
|
Loading…
Reference in New Issue