commit | d62262a0260760dc536b4d2fff0bee2b1c18052c | [log] [tgz] |
---|---|---|
author | paul <paul> | Mon Nov 17 09:08:45 2003 +0000 |
committer | paul <paul> | Mon Nov 17 09:08:45 2003 +0000 |
tree | d6132213aca290d6145054b542e035f8ec2df234 | |
parent | 27d47aa7af603720724bd219b7ef4dbdb8aaaa7b [diff] |
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))