diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2013-03-19 00:44:04 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2013-03-19 00:44:04 +0000 |
commit | 027974f175a3b90597723dda937b3f02a17d8aa9 (patch) | |
tree | 30bf5e815fef3f3b1661db9ab231b271231a31c1 /usr.sbin/identd/identd.c | |
parent | fa4d52a90c7c36f507864ee5c752d3c7b5ccff6f (diff) |
dont need to event_add the parent to child writing events twice. especially
if something stops you from having something to write after the first
event_add but before the second one.
thank you to Henri Kemppainen for the find.
Diffstat (limited to 'usr.sbin/identd/identd.c')
-rw-r--r-- | usr.sbin/identd/identd.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.sbin/identd/identd.c b/usr.sbin/identd/identd.c index d51d0c67a3e..122780634f7 100644 --- a/usr.sbin/identd/identd.c +++ b/usr.sbin/identd/identd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: identd.c,v 1.5 2013/03/18 04:53:23 dlg Exp $ */ +/* $OpenBSD: identd.c,v 1.6 2013/03/19 00:44:03 dlg Exp $ */ /* * Copyright (c) 2013 David Gwynne <dlg@openbsd.org> @@ -355,8 +355,6 @@ parent_rd(int fd, short events, void *arg) lerrx(1, "unexpected %zd data from child", n); } - event_add(&proc_wr, NULL); - r = calloc(1, sizeof(*r)); if (r == NULL) lerr(1, "resolver alloc"); |