Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Nessus: commits

nessus-libraries/libpcap-nessus pcap-dlpi.c,1.6,1.6.4.1

 

 

Nessus commits RSS feed   Index | Next | Previous | View Threaded


renaud at nessus

Jun 5, 2007, 6:28 AM

Post #1 of 1 (3267 views)
Permalink
nessus-libraries/libpcap-nessus pcap-dlpi.c,1.6,1.6.4.1

Update of /usr/local/cvs/nessus-libraries/libpcap-nessus
In directory raccoon.nessus.org:/tmp/cvs-serv112

Modified Files:
Tag: NESSUS_2_2
pcap-dlpi.c
Log Message:
bug#1606

Index: pcap-dlpi.c
===================================================================
RCS file: /usr/local/cvs/nessus-libraries/libpcap-nessus/pcap-dlpi.c,v
retrieving revision 1.6
retrieving revision 1.6.4.1
diff -u -d -r1.6 -r1.6.4.1
--- pcap-dlpi.c 6 Feb 2003 20:28:08 -0000 1.6
+++ pcap-dlpi.c 5 Jun 2007 13:28:01 -0000 1.6.4.1
@@ -248,11 +248,15 @@
/*
** Determine device and ppa
*/
- cp = strpbrk(device, "0123456789");
- if (cp == NULL) {
+ cp = device + strlen(device) - 1;
+ if ( *cp < '0' || *cp > '9' ) {
sprintf(ebuf, "%s missing unit number", device);
goto bad;
}
+
+ while ( cp - 1 >= device && *(cp - 1) >= '0' && *(cp - 1) <= '9' )
+ cp--;
+
ppa = strtol(cp, &eos, 10);
if (*eos != '\0') {
sprintf(ebuf, "%s bad unit number", device);

_______________________________________________
Nessus-cvs mailing list
Nessus-cvs [at] list
http://mail.nessus.org/mailman/listinfo/nessus-cvs

Nessus commits RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.