Commit 292e43fc authored by Per Cederqvist's avatar Per Cederqvist

(init_connection): Initialize dummy_aux_item.data.

(kill_client): Check dummy_aux_item.data and aux_item.data.
parent 917ab423
/*
* $Id: internal-connections.c,v 0.42 1999/06/25 15:49:44 ceder Exp $
* $Id: internal-connections.c,v 0.43 2000/08/05 21:04:32 ceder Exp $
* Copyright (C) 1991-1994, 1996-1999 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -35,7 +35,7 @@
static const char *
rcsid = "$Id: internal-connections.c,v 0.42 1999/06/25 15:49:44 ceder Exp $";
rcsid = "$Id: internal-connections.c,v 0.43 2000/08/05 21:04:32 ceder Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -125,6 +125,7 @@ init_connection(Connection *conn)
conn->misc_info_list.no_of_misc = 0;
conn->misc_info_list.misc = NULL;
conn->aux_item.data = EMPTY_STRING;
conn->dummy_aux_item.data = EMPTY_STRING;
conn->aux_item_list.items = NULL;
conn->aux_item_list.length = 0;
conn->c_local_text_no_p = NULL;
......@@ -284,6 +285,12 @@ kill_client(Connection *cp)
if ( cp->misc_info_list.misc != NULL || cp->c_local_text_no_p != NULL )
kom_log("kill_client(): unexpected remaining data.\n");
if (!s_empty(cp->aux_item.data))
kom_log("kill_client(): unexpected aux_item string remains.\n");
if (!s_empty(cp->dummy_aux_item.data))
kom_log("kill_client(): unexpected dummy_aux_item string remains.\n");
/* FIXME: Check for remaining data in aux-item structures */
sfree(cp);
......
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