diff options
author | ajs <ajs> | 2007-06-07 13:11:58 +0000 |
---|---|---|
committer | ajs <ajs> | 2007-06-07 13:11:58 +0000 |
commit | 4616b4afc9d5ec51024e765972cfae4be41116fd (patch) | |
tree | 0d9281f2a999ecd6ed547eeaee66c74254546fdc | |
parent | 2fa824ed3af95a0d0845a9a3605259df59fc28b2 (diff) | |
download | quagga-4616b4afc9d5ec51024e765972cfae4be41116fd.tar.bz2 quagga-4616b4afc9d5ec51024e765972cfae4be41116fd.tar.xz |
[ospf6d] Fix silly bug: muse use strcmp to compare strings
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.
-rw-r--r-- | ospf6d/ChangeLog | 5 | ||||
-rw-r--r-- | ospf6d/ospf6_lsa.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/ospf6d/ChangeLog b/ospf6d/ChangeLog index 4d55a590..b9bea691 100644 --- a/ospf6d/ChangeLog +++ b/ospf6d/ChangeLog @@ -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 diff --git a/ospf6d/ospf6_lsa.c b/ospf6d/ospf6_lsa.c index d555c3bd..e57384b3 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; |