CVS: bopm/src scan.c,1.33,1.34

[email protected] (David Leadbeater)
Newsgroups gmane.network.irc.bopm
Message-ID <[email protected]>
Update of /data/cvs/bopm/src
In directory nubian.blitzed.org:/usr/home/dg/bopm/src

Modified Files:
	scan.c 
Log Message:
scan.c: null pointer deref fix from glen at delfi.ee


Index: scan.c
===================================================================
RCS file: /data/cvs/bopm/src/scan.c,v
retrieving revision 1.33
retrieving revision 1.34
diff --unified=6 -r1.33 -r1.34
--- scan.c	22 Jun 2003 17:05:30 -0000	1.33
+++ scan.c	23 Aug 2004 22:34:53 -0000	1.34
@@ -421,17 +421,19 @@
                {
                   case OPM_ERR_NOPROTOCOLS:
                      continue;
                      break;
                   case OPM_ERR_BADADDR:
                      log_printf("OPM -> Bad address %s [%s].",
-                           ss->manual_target->name, ss->ip);
+                           (ss->manual_target->name ? ss->manual_target_name :
+                           "(unknown)"), ss->ip);
                      break;
                   default:
                      log_printf("OPM -> Unknown error %s [%s].",
-                           ss->manual_target->name, ss->ip);
+                           (ss->manual_target->name ? ss->manual_target_name :
+                           "(unknown)"), ss->ip);
                      break;
                }
             }
             else
                ss->scans++; /* Increase scan count only if OPM_SUCCESS */
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.