diff options
author | paul <paul> | 2003-11-17 09:08:45 +0000 |
---|---|---|
committer | paul <paul> | 2003-11-17 09:08:45 +0000 |
commit | d62262a0260760dc536b4d2fff0bee2b1c18052c (patch) | |
tree | d6132213aca290d6145054b542e035f8ec2df234 /ripd | |
parent | 27d47aa7af603720724bd219b7ef4dbdb8aaaa7b (diff) |
2003-11-17 Hasso Tepper <hasso@estpak.ee>
* ripd/ripd.c: rip_create_socket() privs were not dropped if bind
failed.
Diffstat (limited to 'ripd')
-rw-r--r-- | ripd/ripd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ripd/ripd.c b/ripd/ripd.c index accac5e9..df6cf6cf 100644 --- a/ripd/ripd.c +++ b/ripd/ripd.c @@ -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)) |