diff options
Diffstat (limited to 'usr.sbin/bgpd')
-rw-r--r-- | usr.sbin/bgpd/control.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/usr.sbin/bgpd/control.c b/usr.sbin/bgpd/control.c index 7e862b42807..785bbd81f08 100644 --- a/usr.sbin/bgpd/control.c +++ b/usr.sbin/bgpd/control.c @@ -1,4 +1,4 @@ -/* $OpenBSD: control.c,v 1.25 2004/03/02 19:29:01 claudio Exp $ */ +/* $OpenBSD: control.c,v 1.26 2004/03/17 14:39:45 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -110,8 +110,6 @@ control_accept(int listenfd) int connfd; socklen_t len; struct sockaddr_un sun; - uid_t uid; - gid_t gid; struct ctl_conn *ctl_conn; len = sizeof(sun); @@ -125,16 +123,6 @@ control_accept(int listenfd) session_socket_blockmode(connfd, BM_NONBLOCK); - if (getpeereid(connfd, &uid, &gid) == -1) { - log_warn("session_control_accept"); - return; - } - - if (uid) { - log_info("Control connection attempt from uid %ld", uid); - return; - } - if ((ctl_conn = malloc(sizeof(struct ctl_conn))) == NULL) { log_warn("session_control_accept"); return; |