]> git.proxmox.com Git - mirror_frr.git/commitdiff
[ospf6d] Fix string comparison bug in ospf6_lsa_handler_name.
authorAndrew J. Schorr <ajschorr@alumni.princeton.edu>
Tue, 27 Feb 2007 15:24:36 +0000 (15:24 +0000)
committerAndrew J. Schorr <ajschorr@alumni.princeton.edu>
Tue, 27 Feb 2007 15:24:36 +0000 (15:24 +0000)
2007-02-27  Pavol Rusnak <prusnak@suse.cz>

* ospf6_lsa.c: (ospf6_lsa_handler_name) Fix bug: must use strcmp
  to compare strings.

ospf6d/ChangeLog
ospf6d/ospf6_lsa.c

index ed9c2a1eeb6cf970de0230cc8430f7f96feb5829..766cecee8a9af1af67d06ecc9bf15f248f3d970b 100644 (file)
@@ -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)
index 9ce0ac69ab88cf5fdcd105dee9fb35782646b7c6..d555c3bda00ce83457a8a2634bc8aaafcc5336df 100644 (file)
@@ -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);