~mdw
/
fwd
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
chan.c (chan_open): Actually initialize the error indicator.
[fwd]
/
identify.c
diff --git
a/identify.c
b/identify.c
index
dd37a6a
..
e099fb9
100644
(file)
--- a/
identify.c
+++ b/
identify.c
@@
-82,6
+82,7
@@
static void id_done(id *i)
/* --- Dispose of the block --- */
REFFD_DEC(i->q.r);
/* --- Dispose of the block --- */
REFFD_DEC(i->q.r);
+ xfree((/*unconst*/ char *)i->q.desc);
xfree(i);
}
xfree(i);
}
@@
-166,6
+167,7
@@
void identify(const id_req *q)
i = xmalloc(sizeof(*i));
i->q = *q;
i = xmalloc(sizeof(*i));
i->q = *q;
+ i->q.desc = xstrdup(q->desc);
REFFD_INC(i->q.r);
str_sanitize(i->host, inet_ntoa(q->rsin.sin_addr), sizeof(i->host));
REFFD_INC(i->q.r);
str_sanitize(i->host, inet_ntoa(q->rsin.sin_addr), sizeof(i->host));