[users at i-scream] small patch for network_stats.c
Ron Arts
ron.arts at netland.nl
Mon Feb 9 08:10:38 GMT 2004
Hi,
don't know if this is already fixed in newer releases,
but anyway, my program crashed on it so here's the patch
Regards,
Ron Arts
Very small fix for libstatgrab: check pointer:
diff -c -r1.1 network_stats.c
*** network_stats.c 4 Dec 2003 18:59:17 -0000 1.1
--- network_stats.c 9 Feb 2004 08:07:17 -0000
***************
*** 284,289 ****
--- 284,292 ----
network_stats_diff_ptr++;
}
network_stats_ptr=get_network_stats(&ifaces);
+ if(network_stats_ptr==NULL){
+ return NULL;
+ }
network_stats_diff_ptr=network_stats_diff;
for(x=0;x<sizeof_net_stats_diff;x++){
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3465 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.i-scream.org/pipermail/users/attachments/20040209/f6726661/attachment.bin>
More information about the users
mailing list