2003-11-17 Hasso Tepper <hasso@estpak.ee>

        * ripd/ripd.c: rip_create_socket() privs were not dropped if bind
          failed.
diff --git a/ripd/ripd.c b/ripd/ripd.c
index accac5e..df6cf6c 100644
--- a/ripd/ripd.c
+++ b/ripd/ripd.c
@@ -1882,6 +1882,8 @@
   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))