BUG#: 8270
authorvenkat.puvvada <venkat.puvvada>
Mon, 15 Dec 2008 12:48:37 +0000 (12:48 +0000)
committervenkat.puvvada <venkat.puvvada>
Mon, 15 Dec 2008 12:48:37 +0000 (12:48 +0000)
TITLE: incorrect check for local and target interface type in create_slp_client() method
DESCRIPTION:

src/slp/slp_client/src/cmd-utils/slp_client/slp_client.cpp

index eaf210ce02efb95f87104997cffbd9e105144d5b..92f1dcade8818c95f8e1b34e06910c9b1f1402f8 100644 (file)
@@ -3641,7 +3641,7 @@ struct slp_client *create_slp_client(
 
     // Don't allow having local_interface and target_addr of different address
     // types.
-    if (local_af != AF_UNSPEC && local_af != AF_UNSPEC)
+    if (local_af != AF_UNSPEC && target_af != AF_UNSPEC)
     {
         // We can not have ipv4 interface sending datagrams to ip6 interface or
         // vice-versa.