[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.
diff --git a/ospf6d/ospf6_lsa.c b/ospf6d/ospf6_lsa.c
index 9ce0ac6..d555c3b 100644
--- a/ospf6d/ospf6_lsa.c
+++ b/ospf6d/ospf6_lsa.c
@@ -717,7 +717,7 @@
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);