TCP: always return a free-able string buffer

Closes #17722
This commit is contained in:
Jaap Keuter 2021-11-10 11:06:46 +01:00 committed by Guy Harris
parent 5b54bb2e0d
commit 4010799cb3
1 changed files with 1 additions and 1 deletions

View File

@ -725,7 +725,7 @@ tcp_flags_to_str(wmem_allocator_t *scope, const struct tcpheader *tcph)
}
if (buf[0] == '\0')
buf = "<None>";
g_stpcpy(pbuf, "<None>");
return buf;
}