[Freeciv-Dev] (PR#4656) more uninitialized network data
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
There's only one place in the server where send_packet_generic_message
sends uninitialized data.
jason
Index: server/sernet.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/server/sernet.c,v
retrieving revision 1.107
diff -u -r1.107 sernet.c
--- server/sernet.c 2003/07/10 03:34:30 1.107
+++ server/sernet.c 2003/07/23 19:38:00
@@ -204,9 +204,11 @@
void close_connections_and_socket(void)
{
int i;
-
struct packet_generic_message gen_packet;
+
gen_packet.message[0]='\0';
+ gen_packet.x = gen_packet.y = -1;
+ gen_packet.event = E_NOEVENT;
lsend_packet_generic_message(&game.all_connections, PACKET_SERVER_SHUTDOWN,
&gen_packet);
- [Freeciv-Dev] (PR#4656) more uninitialized network data,
Jason Short <=
|
|