Commit 19edf2ae authored by Per Cederqvist's avatar Per Cederqvist

(prot_a_parse_conf_type): Let allow_anon default to 1, not 0. We

	really should have a way to let it default to unset, so that a
	set-conf-type that only specifies four bits doesn't alter the
	remaining bits.
parent 5095e105
/* /*
* $Id: prot-a-parse.c,v 0.33 1998/08/29 20:28:13 ceder Exp $ * $Id: prot-a-parse.c,v 0.34 1998/11/14 17:37:21 ceder Exp $
* Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996 Lysator Academic Computer Association. * Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996 Lysator Academic Computer Association.
* *
* This file is part of the LysKOM server. * This file is part of the LysKOM server.
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
*/ */
static const char * static const char *
rcsid = "$Id: prot-a-parse.c,v 0.33 1998/08/29 20:28:13 ceder Exp $"; rcsid = "$Id: prot-a-parse.c,v 0.34 1998/11/14 17:37:21 ceder Exp $";
#include "rcs.h" #include "rcs.h"
USE(rcsid); USE(rcsid);
...@@ -246,17 +246,18 @@ prot_a_parse_conf_type(Connection *client, ...@@ -246,17 +246,18 @@ prot_a_parse_conf_type(Connection *client,
res->letter_box = token.string[ 3 ] != '0'; res->letter_box = token.string[ 3 ] != '0';
if (s_strlen(token) != 8) if (s_strlen(token) != 8)
{ {
res->allow_anon = 0; /* FIXME: have an "unset" value here? */
res->reserved1 = 0; res->allow_anon = 1;
res->reserved2 = 0; res->reserved1 = 0;
res->reserved3 = 0; res->reserved2 = 0;
res->reserved3 = 0;
} }
else else
{ {
res->allow_anon = token.string[ 4 ] != '0'; res->allow_anon = token.string[ 4 ] != '0';
res->reserved1 = token.string[ 5 ] != '0'; res->reserved1 = token.string[ 5 ] != '0';
res->reserved2 = token.string[ 6 ] != '0'; res->reserved2 = token.string[ 6 ] != '0';
res->reserved3 = token.string[ 7 ] != '0'; res->reserved3 = token.string[ 7 ] != '0';
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment