summaryrefslogtreecommitdiff
path: root/ospf6d/ospf6_lsa.c
diff options
context:
space:
mode:
authorAndrew J. Schorr <ajschorr@alumni.princeton.edu>2007-02-27 15:24:36 +0000
committerAndrew J. Schorr <ajschorr@alumni.princeton.edu>2007-02-27 15:24:36 +0000
commitc32d28b765e936acb8695f73a119d73cacff2610 (patch)
tree9fe15aab5dce014eb71fc97b1659a3a958ad927d /ospf6d/ospf6_lsa.c
parent4056a544eb0b7ea513bca0d70808e671c3f2c25b (diff)
[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/ospf6_lsa.c')
-rw-r--r--ospf6d/ospf6_lsa.c2
1 files changed, 1 insertions, 1 deletions
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);