diff options
Diffstat (limited to 'ripd/ripd.c')
-rw-r--r-- | ripd/ripd.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/ripd/ripd.c b/ripd/ripd.c index a58406b4..c5d45536 100644 --- a/ripd/ripd.c +++ b/ripd/ripd.c @@ -37,13 +37,10 @@ #include "distribute.h" #include "md5-gnu.h" #include "keychain.h" -#include "privs.h" #include "ripd/ripd.h" #include "ripd/rip_debug.h" -extern struct zebra_privs_t ripd_privs; - /* RIP Structure. */ struct rip *rip = NULL; @@ -1887,17 +1884,13 @@ rip_create_socket () setsockopt_pktinfo (sock); #endif /* RIP_RECVMSG */ - if (ripd_privs.change (ZPRIVS_RAISE)) - zlog_err ("rip_create_socket: could not raise privs"); ret = bind (sock, (struct sockaddr *) & addr, sizeof (addr)); if (ret < 0) { perror ("bind"); return ret; } - if (ripd_privs.change (ZPRIVS_LOWER)) - zlog_err ("rip_create_socket: could not lower privs"); - + return sock; } |