]> git.puffer.fish Git - matthieu/frr.git/commitdiff
2003-11-17 Hasso Tepper <hasso@estpak.ee>
authorpaul <paul>
Mon, 17 Nov 2003 09:08:45 +0000 (09:08 +0000)
committerpaul <paul>
Mon, 17 Nov 2003 09:08:45 +0000 (09:08 +0000)
        * ripd/ripd.c: rip_create_socket() privs were not dropped if bind
          failed.

ripd/ripd.c

index accac5e9c5836d658d13bbda2410e84bd4ca032a..df6cf6cfae11a7f17c39b5e81b15ac8430d39165 100644 (file)
@@ -1882,6 +1882,8 @@ rip_create_socket ()
   if (ret < 0)
     {
       perror ("bind");
+      if (ripd_privs.change (ZPRIVS_LOWER))
+        zlog_err ("rip_create_socket: could not lower privs");
       return ret;
     }
   if (ripd_privs.change (ZPRIVS_LOWER))