Mailing List Archive

NessusClient/nessus/prefs_dialog prefs_scope_tree.c,1.16,1.17
Update of /usr/local/cvs/NessusClient/nessus/prefs_dialog
In directory raccoon.nessus.org:/tmp/cvs-serv34117

Modified Files:
prefs_scope_tree.c
Log Message:
Backport from release-1-0:
don't snprintf() a null pointer


Index: prefs_scope_tree.c
===================================================================
RCS file: /usr/local/cvs/NessusClient/nessus/prefs_dialog/prefs_scope_tree.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- prefs_scope_tree.c 19 Jan 2007 00:10:39 -0000 1.16
+++ prefs_scope_tree.c 1 Mar 2007 22:58:29 -0000 1.17
@@ -565,9 +565,11 @@
* Cache the results in a '.cnt' file to avoid recounting
* each .nbe file on startup
*/
- snprintf(cached_counters, sizeof(cached_counters), "%s.cnt", fname);
if ( fname != NULL )
+ {
+ snprintf(cached_counters, sizeof(cached_counters), "%s.cnt", fname);
fp = fopen(cached_counters, "r");
+ }
else
fp = NULL;


_______________________________________________
Nessus-cvs mailing list
Nessus-cvs@list.nessus.org
http://mail.nessus.org/mailman/listinfo/nessus-cvs