diff options
author | Volker Lendecke <vlendec@samba.org> | 2007-07-29 09:51:06 +0000 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2007-07-29 09:51:06 +0000 |
commit | e437e2059c027f57033511d45d51a9c044d70a91 (patch) | |
tree | d53880fe809440f612be70cde6340e9132c868d3 /source/printing/notify.c | |
parent | 279d50aac17aee1437b2ed580ff2d53b17f84d09 (diff) | |
download | samba-e437e2059c027f57033511d45d51a9c044d70a91.tar.gz samba-e437e2059c027f57033511d45d51a9c044d70a91.tar.xz samba-e437e2059c027f57033511d45d51a9c044d70a91.zip |
r24069: Fix Coverity ID 368. We would segfault if 0 < data.dsize < 8
Diffstat (limited to 'source/printing/notify.c')
-rw-r--r-- | source/printing/notify.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/printing/notify.c b/source/printing/notify.c index d96e9ae056c..0b51475391c 100644 --- a/source/printing/notify.c +++ b/source/printing/notify.c @@ -553,7 +553,7 @@ BOOL print_notify_pid_list(const char *printername, TALLOC_CTX *mem_ctx, size_t pid_list = NULL; } - for( i = 0, offset = 0; offset < data.dsize; offset += 8, i++) + for( i = 0, offset = 0; i < num_pids; offset += 8, i++) pid_list[i] = (pid_t)IVAL(data.dptr, offset); *pp_pid_list = pid_list; |