Fix bug 7297 - smbd crashes with CUPS printers and no [printers] share defined.
commitafb7eed1da24cbe5ac6faccda9ae3fe5ad29b9f7
authorJeremy Allison <jra@samba.org>
Fri, 26 Mar 2010 00:09:23 +0000 (25 17:09 -0700)
committerKarolin Seeger <kseeger@samba.org>
Thu, 6 May 2010 12:08:34 +0000 (6 14:08 +0200)
tree5aefd084d340a521ae04eb3790fe7bee77fabd47
parent76019d6506a7f2b677ef1dd49e22dda2f73c3f52
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)
(cherry picked from commit fcb4c51e79f648ae02f77784d46bcc9c7331d3cb)
source3/smbd/service.c