diff options
author | John Kohl <jtkohl@mit.edu> | 1988-07-19 06:11:42 +0000 |
---|---|---|
committer | John Kohl <jtkohl@mit.edu> | 1988-07-19 06:11:42 +0000 |
commit | d0553a544500ee433a4419bba318e3338f4cfcc4 (patch) | |
tree | 1c2b319e2b53f1907787fbe1ede6a79857629327 /server/uloc.c | |
parent | 0ac2c1ff38212e704783fe962070221c3d98efb7 (diff) |
fix possible problem with uninitialized fields in notice structure
Diffstat (limited to 'server/uloc.c')
-rw-r--r-- | server/uloc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/uloc.c b/server/uloc.c index 7b25aaf..5ed666c 100644 --- a/server/uloc.c +++ b/server/uloc.c @@ -295,7 +295,6 @@ struct sockaddr_in *who; char *pkt; ZClient_t *client; - (void) bzero((char *)&sense_notice, sizeof(sense_notice)); /* XXX todo: have the messsage print the IP addr */ /* someone tried an unauthentic logout. Try to send a message @@ -313,6 +312,8 @@ struct sockaddr_in *who; owner.sin_addr.s_addr = loc->zlt_addr.s_addr; owner.sin_port = loc->zlt_port; + sense_notice = *notice; /* copy all fields */ + /* and change the ones we need to */ sense_notice.z_kind = ACKED; sense_notice.z_port = loc->zlt_port; sense_notice.z_class = "MESSAGE"; |