]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Fri, 23 Dec 2011 10:54:08 +0000 (11:54 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Fri, 23 Dec 2011 10:54:08 +0000 (11:54 +0100)
ChangeLog
grub-core/net/net.c

index d76f07ac456cb1845dd67934a68cf600c6df4135..3c296613431e71b0da5c197c88cbdd66e5c02653 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-12-23  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
+
 2011-12-23  Seth Goldberg <seth.goldberg@oracle.com>
 
        * grub-core/Makefile.core.def (lzma_decompress): Add missing
index d642064327d092f24df283ac51dbc42c5b041586..347a95afde7afee52c2a2d4a60ed329d84d43ad2 100644 (file)
@@ -934,6 +934,8 @@ grub_cmd_delroute (struct grub_command *cmd __attribute__ ((unused)),
        *prev = route->next;
        grub_free (route->name);
        grub_free (route);
+       if (!*prev)
+         break;
       }
 
   return GRUB_ERR_NONE;