Send Linux-ha-cvs mailing list submissions to linux-ha-cvs@lists.linux-ha.org
To subscribe or unsubscribe via the World Wide Web, visit http://lists.community.tummy.com/mailman/listinfo/linux-ha-cvs or, via email, send a message with subject or body 'help' to [EMAIL PROTECTED] You can reach the person managing the list at [EMAIL PROTECTED] When replying, please edit your Subject line so it is more specific than "Re: Contents of Linux-ha-cvs digest..." Today's Topics: 1. Linux-HA CVS: heartbeat by andrew from (linux-ha-cvs@lists.linux-ha.org) ---------------------------------------------------------------------- Message: 1 Date: Fri, 25 Aug 2006 01:19:56 -0600 (MDT) From: linux-ha-cvs@lists.linux-ha.org Subject: [Linux-ha-cvs] Linux-HA CVS: heartbeat by andrew from To: [EMAIL PROTECTED] Message-ID: <[EMAIL PROTECTED]> linux-ha CVS committal Author : andrew Host : Project : linux-ha Module : heartbeat Dir : linux-ha/heartbeat Modified Files: findif.c Log Message: Hopefully the last backport... # HG changeset patch # User Andrew Beekhof <[EMAIL PROTECTED]> # Date 1156490301 -7200 # Node ID 5bbeec3396a7c733a45522f6517e284c3a7b34d8 # Parent b91c7d5049fce99731bf93f128a18b31911b740b Check for NULL before calling strchr() =================================================================== RCS file: /home/cvs/linux-ha/linux-ha/heartbeat/findif.c,v retrieving revision 1.61 retrieving revision 1.62 diff -u -3 -r1.61 -r1.62 --- findif.c 24 Aug 2006 16:22:27 -0000 1.61 +++ findif.c 25 Aug 2006 07:19:55 -0000 1.62 @@ -1,4 +1,4 @@ -/* $Id: findif.c,v 1.61 2006/08/24 16:22:27 andrew Exp $ */ +/* $Id: findif.c,v 1.62 2006/08/25 07:19:55 andrew Exp $ */ /* * findif.c: Finds an interface which can route a given address * @@ -701,7 +701,7 @@ return(1); } - if(strchr(netmaskbits, '.') != NULL) { + if(netmaskbits != NULL && strchr(netmaskbits, '.') != NULL) { int len = strlen(netmaskbits); ConvertQuadToInt(netmaskbits, len); snprintf(netmaskbits, len, "%d", @@ -922,6 +922,16 @@ /* * $Log: findif.c,v $ + * Revision 1.62 2006/08/25 07:19:55 andrew + * Hopefully the last backport... + * + * # HG changeset patch + * # User Andrew Beekhof <[EMAIL PROTECTED]> + * # Date 1156490301 -7200 + * # Node ID 5bbeec3396a7c733a45522f6517e284c3a7b34d8 + * # Parent b91c7d5049fce99731bf93f128a18b31911b740b + * Check for NULL before calling strchr() + * * Revision 1.61 2006/08/24 16:22:27 andrew * Backport IPaddr related patch from Mercurial * ------------------------------ _______________________________________________ Linux-ha-cvs mailing list Linux-ha-cvs@lists.linux-ha.org http://lists.community.tummy.com/mailman/listinfo/linux-ha-cvs End of Linux-ha-cvs Digest, Vol 33, Issue 86 ********************************************