Fix bug 7297 - smbd crashes with CUPS printers and no [printers] share defined.
commit43aa817ad6990b3398b0f351655bcb4225e2b353
authorJeremy Allison <jra@samba.org>
Fri, 26 Mar 2010 00:09:23 +0000 (25 17:09 -0700)
committerKarolin Seeger <kseeger@samba.org>
Mon, 29 Mar 2010 07:41:06 +0000 (29 09:41 +0200)
tree74654c7d7c9ca08fa96ab16eabc33d23db2c0bd3
parent1b9a59bf28ccf0e3d9f9f22e824d69d1004c38e4
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.
(cherry picked from commit e4127ab299e654777c43d983b2e0a158baa7d79a)
source3/smbd/service.c