Skip to content

Commit cb8a02a

Browse files
committed
pcpserver.c: copyIPv6IfDifferent() check for NULL src argument
1 parent f321c20 commit cb8a02a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: miniupnpd/pcpserver.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ static const char * getPCPOpCodeStr(uint8_t opcode)
177177
* buffers are same */
178178
static void copyIPv6IfDifferent(void * dest, const void * src)
179179
{
180-
if(dest != src) {
180+
if(dest != src && src != NULL) {
181181
memcpy(dest, src, sizeof(struct in6_addr));
182182
}
183183
}

0 commit comments

Comments
 (0)