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

* ripd/ripd.c: rip_create_socket() privs were not dropped if bind
          failed.
This commit is contained in:
paul 2003-11-17 09:08:45 +00:00
parent 27d47aa7af
commit d62262a026

View 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))