1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

Fix for malloc of zero bytes found by insure.

Jeremy.
(This used to be commit 2916790859)
This commit is contained in:
Jeremy Allison 2000-09-11 23:21:16 +00:00
parent 0b2e454703
commit 692fe0cabf

View File

@ -3564,6 +3564,11 @@ uint32 _spoolss_enumjobs( POLICY_HND *handle, uint32 firstjob, uint32 numofjobs,
*returned = print_queue_status(snum, &queue, &prt_status);
DEBUGADD(4,("count:[%d], status:[%d], [%s]\n", *returned, prt_status.status, prt_status.message));
if (*returned == 0) {
safe_free(queue);
return NT_STATUS_NO_PROBLEMO;
}
switch (level) {
case 1:
return enumjobs_level1(queue, snum, buffer, offered, needed, returned);