git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc07eb5
)
Fixed O(N^2) talloc loop when allocating printer name memory - fix from
author
Jeremy Allison
<jra@samba.org>
Thu, 6 Sep 2001 15:48:29 +0000
(15:48 +0000)
committer
Jeremy Allison
<jra@samba.org>
Thu, 6 Sep 2001 15:48:29 +0000
(15:48 +0000)
Richard Bollinger <rabollinger@home.com>.
Jeremy.
(This used to be commit
408c0595bbeafca87795e5278656471fbe0540e8
)
source3/param/loadparm.c
patch
|
blob
|
history
diff --git
a/source3/param/loadparm.c
b/source3/param/loadparm.c
index 98bb5abd09dbf03996281fb4a090b2bf791e934d..95ba076977611b761edd893ea5a72c0b4d8d3268 100644
(file)
--- a/
source3/param/loadparm.c
+++ b/
source3/param/loadparm.c
@@
-3344,8
+3344,8
@@
int lp_servicenumber(char *pszServiceName)
int iService;
for (iService = iNumServices - 1; iService >= 0; iService--)
- if (VALID(iService) &&
-
strequal(lp_servicename(iService)
, pszServiceName))
+ if (VALID(iService) &&
ServicePtrs[iService]->szService &&
+
strequal(ServicePtrs[iService]->szService
, pszServiceName))
break;
if (iService < 0)
DEBUG(7,