summaryrefslogtreecommitdiffstats
path: root/src/nis.c
diff options
context:
space:
mode:
authorNalin Dahyabhai <nalin@redhat.com>2011-01-03 14:09:07 -0500
committerNalin Dahyabhai <nalin@redhat.com>2011-01-03 14:09:07 -0500
commitf58caae275b21503387150e10323b5d52a95d856 (patch)
tree8ed0faa7984126e110c4607ae622374c735335c5 /src/nis.c
parent39fb24ba0c8a4d498007fdcac90c883e279716ac (diff)
downloadslapi-nis-f58caae275b21503387150e10323b5d52a95d856.tar.gz
slapi-nis-f58caae275b21503387150e10323b5d52a95d856.tar.xz
slapi-nis-f58caae275b21503387150e10323b5d52a95d856.zip
- clear the whole reply structure before use instead of just the initial part (defect #10088)
Diffstat (limited to 'src/nis.c')
-rw-r--r--src/nis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nis.c b/src/nis.c
index d05e4ce..023dc3c 100644
--- a/src/nis.c
+++ b/src/nis.c
@@ -582,7 +582,7 @@ nis_all(struct plugin_state *state,
for (stop = FALSE; stop == FALSE;) {
bool_t found, skip;
xdr_setpos(reply_xdrs, 0);
- memset(reply_all, 0, sizeof(reply_all));
+ memset(reply_all, 0, sizeof(*reply_all));
/* Follow any instructions we left for this iteration.
*/
switch (cookie->state) {