Skip to content
Permalink
Browse files Browse the repository at this point in the history
pcpserver.c: copyIPv6IfDifferent() check for NULL src argument
  • Loading branch information
miniupnp committed Dec 18, 2018
1 parent f321c20 commit cb8a02a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion miniupnpd/pcpserver.c
Expand Up @@ -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));
}
}
Expand Down

0 comments on commit cb8a02a

Please sign in to comment.