diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2014-02-09 14:21:18 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2014-02-09 14:21:18 +0000 |
commit | 7d9c37a0a3b79063155b8f0c56524ba5f4728b69 (patch) | |
tree | f02a5c368c779e0520b7553081e9eee0e8ed35cd /sbin/dhclient/privsep.c | |
parent | 07128dc5ae0bd5c9037b1b2b021fbd32c87f790a (diff) |
Missing {} around multi-statement else. Malformed IMSG_HUP messages should
not cause privileged process to exit.
Diffstat (limited to 'sbin/dhclient/privsep.c')
-rw-r--r-- | sbin/dhclient/privsep.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/dhclient/privsep.c b/sbin/dhclient/privsep.c index a90a02a0e07..f36ea0009ae 100644 --- a/sbin/dhclient/privsep.c +++ b/sbin/dhclient/privsep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: privsep.c,v 1.35 2014/01/20 09:16:36 deraadt Exp $ */ +/* $OpenBSD: privsep.c,v 1.36 2014/02/09 14:21:17 krw Exp $ */ /* * Copyright (c) 2004 Henning Brauer <henning@openbsd.org> @@ -75,9 +75,10 @@ dispatch_imsg(struct imsgbuf *ibuf) if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(struct imsg_hup)) warning("bad IMSG_HUP"); - else + else { ifi->flags |= IFI_HUP; quit = SIGHUP; + } break; case IMSG_WRITE_FILE: |