svn commit: samba r16153 - branches/SAMBA_3_0/source/lib
trunk/source/lib
vlendec at samba.org
vlendec at samba.org
Mon Jun 12 12:45:07 GMT 2006
Author: vlendec
Date: 2006-06-12 12:45:06 +0000 (Mon, 12 Jun 2006)
New Revision: 16153
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=16153
Log:
Fix possible NULL dereference found by Klocwork # 252
Modified:
branches/SAMBA_3_0/source/lib/ldap_escape.c
trunk/source/lib/ldap_escape.c
Changeset:
Modified: branches/SAMBA_3_0/source/lib/ldap_escape.c
===================================================================
--- branches/SAMBA_3_0/source/lib/ldap_escape.c 2006-06-12 12:24:33 UTC (rev 16152)
+++ branches/SAMBA_3_0/source/lib/ldap_escape.c 2006-06-12 12:45:06 UTC (rev 16153)
@@ -40,6 +40,10 @@
const char *sub;
int i = 0;
char *p = output;
+
+ if (output == NULL) {
+ return NULL;
+ }
while (*s)
{
Modified: trunk/source/lib/ldap_escape.c
===================================================================
--- trunk/source/lib/ldap_escape.c 2006-06-12 12:24:33 UTC (rev 16152)
+++ trunk/source/lib/ldap_escape.c 2006-06-12 12:45:06 UTC (rev 16153)
@@ -40,6 +40,10 @@
const char *sub;
int i = 0;
char *p = output;
+
+ if (output == NULL) {
+ return NULL;
+ }
while (*s)
{
More information about the samba-cvs
mailing list