Fix bug 7297 - smbd crashes with CUPS printers and no [printers] share defined.
commit2e00a8a74b7c5c95b61e6c7f365ed852c7d95289
authorJeremy Allison <jra@samba.org>
Fri, 26 Mar 2010 00:09:23 +0000 (25 17:09 -0700)
committerJeremy Allison <jra@samba.org>
Fri, 26 Mar 2010 00:09:23 +0000 (25 17:09 -0700)
tree7556574e3e4ade43db3ce4a0da3c28f7ac34f7c0
parent462322f6e8f868c8cd6a5cc84cd0af247a04ec1d
Fix bug 7297 - smbd crashes with CUPS printers and no [printers] share defined.

Ensure we don't dereference an array with an index of -1.

Jeremy.
source3/smbd/service.c