diff options
author | ajs <ajs> | 2007-02-27 15:24:36 +0000 |
---|---|---|
committer | ajs <ajs> | 2007-02-27 15:24:36 +0000 |
commit | aa9f50910f2a071738fd8a31654c4cf0825ff2a8 (patch) | |
tree | 33b2616cd679cfeb826aed51c2dd1963eb9ec4ae /ospf6d | |
parent | f7a0808035fc2121cc82e4c9910296009e888309 (diff) | |
download | quagga-aa9f50910f2a071738fd8a31654c4cf0825ff2a8.tar.bz2 quagga-aa9f50910f2a071738fd8a31654c4cf0825ff2a8.tar.xz |
[ospf6d] Fix string comparison bug in ospf6_lsa_handler_name.
2007-02-27 Pavol Rusnak <prusnak@suse.cz>
* ospf6_lsa.c: (ospf6_lsa_handler_name) Fix bug: must use strcmp
to compare strings.
Diffstat (limited to 'ospf6d')
-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 ed9c2a1e..766cecee 100644 --- a/ospf6d/ChangeLog +++ b/ospf6d/ChangeLog @@ -1,3 +1,8 @@ +2007-02-27 Pavol Rusnak <prusnak@suse.cz> + + * ospf6_lsa.c: (ospf6_lsa_handler_name) Fix bug: must use strcmp + to compare strings. + 2007-02-02 Greg Troxel <Greg Troxel <gdt@ir.bbn.com>> * ospf6d.h: remove declaration of errno (should be via header) diff --git a/ospf6d/ospf6_lsa.c b/ospf6d/ospf6_lsa.c index 9ce0ac69..d555c3bd 100644 --- a/ospf6d/ospf6_lsa.c +++ b/ospf6d/ospf6_lsa.c @@ -717,7 +717,7 @@ ospf6_lsa_handler_name (struct ospf6_lsa_handler *h) unsigned int i; unsigned int size = strlen (h->name); - if (h->name == "Unknown" && + if (!strcmp(h->name, "Unknown") && h->type != OSPF6_LSTYPE_UNKNOWN) { snprintf (buf, sizeof (buf), "%#04hx", h->type); |