Sync OpenBSD patchset 500:

Tell the client to exit on configuration file error.
This commit is contained in:
Tiago Cunha 2009-11-08 23:06:25 +00:00
parent 142962742c
commit 40b6941c0f

View File

@ -1,4 +1,4 @@
/* $Id: server.c,v 1.220 2009-11-08 23:02:56 tcunha Exp $ */ /* $Id: server.c,v 1.221 2009-11-08 23:06:25 tcunha Exp $ */
/* /*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@ -197,6 +197,7 @@ error:
c = ARRAY_FIRST(&clients); c = ARRAY_FIRST(&clients);
server_write_error(c, cause); server_write_error(c, cause);
server_write_client(c, MSG_EXIT, NULL, 0);
xfree(cause); xfree(cause);
server_shutdown = 1; server_shutdown = 1;