diff options
author | Jeremy Allison <jra@samba.org> | 1997-09-16 17:40:17 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1997-09-16 17:40:17 +0000 |
commit | 6449fc3b22284cea0aa186b0c6468696a1d8c1b4 (patch) | |
tree | 1d163f79ab86aab8cd0b10c24d46de6c22627978 /source3/namedbresp.c | |
parent | 6ce9192fc23d1e9e3fba80f774ff8d56f7736ee1 (diff) | |
download | samba-6449fc3b22284cea0aa186b0c6468696a1d8c1b4.tar.gz samba-6449fc3b22284cea0aa186b0c6468696a1d8c1b4.tar.bz2 samba-6449fc3b22284cea0aa186b0c6468696a1d8c1b4.zip |
Fixing assumtions that malloced memory is zero filled - making
sure it is.
Jeremy (jallison@whistle.com)
(This used to be commit 59ee0d0c7ea166a3bf58ceb4c939217d6ff74498)
Diffstat (limited to 'source3/namedbresp.c')
-rw-r--r-- | source3/namedbresp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/namedbresp.c b/source3/namedbresp.c index 98f8ca774b..86d7eddbd4 100644 --- a/source3/namedbresp.c +++ b/source3/namedbresp.c @@ -104,6 +104,8 @@ struct response_record *make_response_queue_record(enum state_type state, if (!(n = (struct response_record *)malloc(sizeof(*n)))) return(NULL); + bzero((char *)n, sizeof(*n)); + n->response_id = id; n->state = state; n->fd = fd; |