diff options
author | Pierre-Yves Ritschard <pyr@cvs.openbsd.org> | 2010-08-03 08:24:24 +0000 |
---|---|---|
committer | Pierre-Yves Ritschard <pyr@cvs.openbsd.org> | 2010-08-03 08:24:24 +0000 |
commit | 53dbc9a03eda12e8bcf58c49f67cd7dcde66c8f3 (patch) | |
tree | 69fa10b800ab309c02a2c82025f225d73d4c34a1 /usr.sbin | |
parent | 7699a01930ab60bf180c52221b656ccfc4e9069e (diff) |
Fix a leak in ypldap. Found (and correct diff) from
plalonde (at) overnet.qc.ca
Prompted by deraadt@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ypldap/yp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ypldap/yp.c b/usr.sbin/ypldap/yp.c index 2908d1cf804..20f68b475f2 100644 --- a/usr.sbin/ypldap/yp.c +++ b/usr.sbin/ypldap/yp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: yp.c,v 1.5 2010/05/06 11:55:01 ajacoutot Exp $ */ +/* $OpenBSD: yp.c,v 1.6 2010/08/03 08:24:23 pyr Exp $ */ /* * Copyright (c) 2008 Pierre-Yves Ritschard <pyr@openbsd.org> * @@ -91,6 +91,7 @@ yp_enable_events(void) fatal(NULL); event_set(&ye->ye_event, i, EV_READ, yp_fd_event, NULL); event_add(&ye->ye_event, NULL); + TAILQ_INSERT_TAIL(&env->sc_yp->yd_events, ye, ye_entry); } } } |