pcpserver.c: copyIPv6IfDifferent() check for NULL src argument
This commit is contained in:
parent
f321c2066b
commit
cb8a02af7a
|
@ -177,7 +177,7 @@ static const char * getPCPOpCodeStr(uint8_t opcode)
|
|||
* buffers are same */
|
||||
static void copyIPv6IfDifferent(void * dest, const void * src)
|
||||
{
|
||||
if(dest != src) {
|
||||
if(dest != src && src != NULL) {
|
||||
memcpy(dest, src, sizeof(struct in6_addr));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue