forked from wolfSSL/wolfssl
Merge pull request #304 from cconlon/testh-fix
Check build_addr() arguments for NULL
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user