diff --git a/miniupnpd/pcpserver.c b/miniupnpd/pcpserver.c index 9acfb44..a964aa9 100644 --- a/miniupnpd/pcpserver.c +++ b/miniupnpd/pcpserver.c @@ -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)); } }