]> git.puffer.fish Git - mirror/frr.git/commitdiff
[ospf6d] Fix silly bug: muse use strcmp to compare strings
authorAndrew J. Schorr <ajschorr@alumni.princeton.edu>
Thu, 7 Jun 2007 13:11:58 +0000 (13:11 +0000)
committerAndrew J. Schorr <ajschorr@alumni.princeton.edu>
Thu, 7 Jun 2007 13:11:58 +0000 (13:11 +0000)
2007-06-07 Pavol Rusnak <prusnak@suse.cz>

* ospf6_lsa.c: (no_debug_ospf6_lsa_hex_cmd) Fix bug: must use strcmp
  to compare strings.

ospf6d/ChangeLog
ospf6d/ospf6_lsa.c

index 4d55a5900e42dad47103f9b3e03e261d24ea3367..b9bea6911f579301e1bb073c008fd7caf258addd 100644 (file)
@@ -1,3 +1,8 @@
+2007-06-07 Pavol Rusnak <prusnak@suse.cz>
+
+       * ospf6_lsa.c: (no_debug_ospf6_lsa_hex_cmd) Fix bug: must use strcmp
+         to compare strings.
+
 2007-04-27 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
 
        * ospf6_snmp.c: (ospfv3AreaEntry, ospfv3AreaLsdbEntry) Fix some
index d555c3bda00ce83457a8a2634bc8aaafcc5336df..e57384b3f5f8048d078ff246d424757559b97fab 100644 (file)
@@ -855,7 +855,7 @@ DEFUN (no_debug_ospf6_lsa_type,
     UNSET_FLAG (handler->debug, OSPF6_LSA_DEBUG);
 
   if (handler->debug == 0 &&
-      handler->name == "Unknown" && type != OSPF6_LSTYPE_UNKNOWN)
+      !strcmp(handler->name, "Unknown") && type != OSPF6_LSTYPE_UNKNOWN)
     {
       free (handler);
       vector_slot (ospf6_lsa_handler_vector, i) = NULL;