Free the non-fatal "timestamp missing" debug string manually as it is

not covered by the catch-all free for the error cases.

Found by:	Coverity
This commit is contained in:
Andre Oppermann 2013-07-16 16:37:08 +00:00
parent 181c4ec270
commit ccd040ab18
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=253395

View File

@ -1041,9 +1041,12 @@ syncache_expand(struct in_conninfo *inc, struct tcpopt *to, struct tcphdr *th,
* reports of non-compliants stacks.
*/
if ((sc->sc_flags & SCF_TIMESTAMP) && !(to->to_flags & TOF_TS)) {
if ((s = tcp_log_addrs(inc, th, NULL, NULL)))
if ((s = tcp_log_addrs(inc, th, NULL, NULL))) {
log(LOG_DEBUG, "%s; %s: Timestamp missing, "
"no action\n", s, __func__);
free(s, M_TCPLOG);
s = NULL;
}
}
/*