From: Andrew J. Schorr Date: Thu, 7 Jun 2007 13:11:58 +0000 (+0000) Subject: [ospf6d] Fix silly bug: muse use strcmp to compare strings X-Git-Tag: frr-2.0-rc1~2505 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=e733f949448e1cf9fa27e8b618c56a0e4badc1af;p=mirror%2Ffrr.git [ospf6d] Fix silly bug: muse use strcmp to compare strings 2007-06-07 Pavol Rusnak * ospf6_lsa.c: (no_debug_ospf6_lsa_hex_cmd) Fix bug: must use strcmp to compare strings. --- diff --git a/ospf6d/ChangeLog b/ospf6d/ChangeLog index 4d55a5900e..b9bea6911f 100644 --- a/ospf6d/ChangeLog +++ b/ospf6d/ChangeLog @@ -1,3 +1,8 @@ +2007-06-07 Pavol Rusnak + + * ospf6_lsa.c: (no_debug_ospf6_lsa_hex_cmd) Fix bug: must use strcmp + to compare strings. + 2007-04-27 Andrew J. Schorr * ospf6_snmp.c: (ospfv3AreaEntry, ospfv3AreaLsdbEntry) Fix some diff --git a/ospf6d/ospf6_lsa.c b/ospf6d/ospf6_lsa.c index d555c3bda0..e57384b3f5 100644 --- a/ospf6d/ospf6_lsa.c +++ b/ospf6d/ospf6_lsa.c @@ -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;