svn commit: samba r17902 - in branches: SAMBA_3_0/source/libsmb
SAMBA_3_0_23/source/libsmb
jra at samba.org
jra at samba.org
Tue Aug 29 01:11:06 GMT 2006
Author: jra
Date: 2006-08-29 01:11:02 +0000 (Tue, 29 Aug 2006)
New Revision: 17902
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=17902
Log:
Fix possible null deref caught by Stanford checker.
Jeremy.
Modified:
branches/SAMBA_3_0/source/libsmb/clifile.c
branches/SAMBA_3_0_23/source/libsmb/clifile.c
Changeset:
Modified: branches/SAMBA_3_0/source/libsmb/clifile.c
===================================================================
--- branches/SAMBA_3_0/source/libsmb/clifile.c 2006-08-29 01:04:25 UTC (rev 17901)
+++ branches/SAMBA_3_0/source/libsmb/clifile.c 2006-08-29 01:11:02 UTC (rev 17902)
@@ -1613,7 +1613,9 @@
struct ea_struct *ea_list;
*pnum_eas = 0;
- *pea_list = NULL;
+ if (pea_list) {
+ *pea_list = NULL;
+ }
if (!cli_send_trans(cli, SMBtrans2,
NULL, /* Name */
Modified: branches/SAMBA_3_0_23/source/libsmb/clifile.c
===================================================================
--- branches/SAMBA_3_0_23/source/libsmb/clifile.c 2006-08-29 01:04:25 UTC (rev 17901)
+++ branches/SAMBA_3_0_23/source/libsmb/clifile.c 2006-08-29 01:11:02 UTC (rev 17902)
@@ -1612,7 +1612,9 @@
struct ea_struct *ea_list;
*pnum_eas = 0;
- *pea_list = NULL;
+ if (pea_list) {
+ *pea_list = NULL;
+ }
if (!cli_send_trans(cli, SMBtrans2,
NULL, /* Name */
More information about the samba-cvs
mailing list