Permalink
Browse files

pcpserver.c: copyIPv6IfDifferent() check for NULL src argument

  • Loading branch information...
miniupnp committed Dec 18, 2018
1 parent f321c20 commit cb8a02af7a5677cf608e86d57ab04241cf34e24f
Showing with 1 addition and 1 deletion.
  1. +1 −1 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));
}
}

0 comments on commit cb8a02a

Please sign in to comment.