diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-10-01 12:00:35 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-10-01 12:00:35 +0000 |
commit | a960cc601593ae7adc5c2ae847f7edc829363ef8 (patch) | |
tree | 8359d7cb8a4139d7beec1d41704d18b696311fa9 /usr.sbin/ypldap | |
parent | 57f9226ac16244abdce1717957a696c6bad43d6b (diff) |
avoid a fd_set overflow by calling a different rpc svc function
ok jmatthew millert
Diffstat (limited to 'usr.sbin/ypldap')
-rw-r--r-- | usr.sbin/ypldap/yp.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/usr.sbin/ypldap/yp.c b/usr.sbin/ypldap/yp.c index e989155b3ea..c8e1a47442e 100644 --- a/usr.sbin/ypldap/yp.c +++ b/usr.sbin/ypldap/yp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: yp.c,v 1.11 2011/08/28 11:53:16 aschrijver Exp $ */ +/* $OpenBSD: yp.c,v 1.12 2013/10/01 12:00:34 deraadt Exp $ */ /* * Copyright (c) 2008 Pierre-Yves Ritschard <pyr@openbsd.org> * @@ -99,11 +99,7 @@ yp_enable_events(void) void yp_fd_event(int fd, short event, void *p) { - fd_set fdset; - - FD_ZERO(&fdset); - FD_SET(fd, &fdset); - svc_getreqset(&fdset); + svc_getreq_common(fd); yp_disable_events(); yp_enable_events(); } |