This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Inetutils ".

The branch, master has been updated
       via  3c0336109f709620b15f7b83474947016f56f4a2 (commit)
      from  95ac7d15532a2a42db9048d4cc7b8ca4f7b2c3bd (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/inetutils.git/commit/?id=3c0336109f709620b15f7b83474947016f56f4a2


commit 3c0336109f709620b15f7b83474947016f56f4a2
Author: Alfred M. Szmidt <[email protected]>
Date:   Mon Aug 16 17:49:52 2010 +0200

    ifconfig/options.c (parse_cmdline): Error out if IFNX is NULL.

diff --git a/ChangeLog b/ChangeLog
index 052daee..9411080 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-08-16  Alfred M. Szmidt  <[email protected]>
+
+       * ifconfig/options.c (parse_cmdline): Error out if IFNX is NULL.
+
 2010-07-30  Giuseppe Scrivano  <[email protected]>
 
        * ifconfig/if_index.c (if_nameindex): Remove local variable `len'.
diff --git a/ifconfig/options.c b/ifconfig/options.c
index 752aa47..0bcef2c 100644
--- a/ifconfig/options.c
+++ b/ifconfig/options.c
@@ -591,6 +591,8 @@ parse_cmdline (int argc, char *argv[])
       struct if_nameindex *ifnx, *ifnxp;
 
       ifnx = ifnxp = if_nameindex ();
+      if (!ifnx)
+       error (EXIT_FAILURE, 0, "could not get list of interfaces");
       while (ifnxp->if_index != 0 || ifnxp->if_name != NULL)
        {
          struct ifconfig *ifp;

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog          |    4 ++++
 ifconfig/options.c |    2 ++
 2 files changed, 6 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
GNU Inetutils 

_______________________________________________
Commit-inetutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-inetutils

Reply via email to