diff options
author | Nalin Dahyabhai <nalin@redhat.com> | 2011-01-03 14:10:48 -0500 |
---|---|---|
committer | Nalin Dahyabhai <nalin@redhat.com> | 2011-01-03 14:11:55 -0500 |
commit | 92aa76218a7fe67a1b75b740a9385581592196f7 (patch) | |
tree | 68aab5f89a7878516e5fd888a83b97c7b4e1b850 | |
parent | f58caae275b21503387150e10323b5d52a95d856 (diff) | |
download | slapi-nis-92aa76218a7fe67a1b75b740a9385581592196f7.tar.gz slapi-nis-92aa76218a7fe67a1b75b740a9385581592196f7.tar.xz slapi-nis-92aa76218a7fe67a1b75b740a9385581592196f7.zip |
- clear the whole array of structures before filling it, instead of the
first sizeof(size_t) bytes (which would have been fine for 1 entry)
(defect #10089)
-rw-r--r-- | src/disp-nis.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/disp-nis.c b/src/disp-nis.c index f8bca15..80b424b 100644 --- a/src/disp-nis.c +++ b/src/disp-nis.c @@ -949,8 +949,8 @@ dispatch_thread(struct wrapped_thread *t) /* Fill in the set of polling descriptors. */ memset(fds, 0, - sizeof((state->n_listeners + client_count + 1) * - sizeof(fds[0]))); + ((state->n_listeners + client_count + 1) * + sizeof(fds[0]))); /* Add the shutdown pipe reader. */ fds[0].fd = wrap_thread_stopfd(t); |