[librdmacm] rstream.c: Use proper define for ai_flags before getaddrinfo call in...
authorHal Rosenstock <hal@dev.mellanox.co.il>
Wed, 30 Sep 2015 13:03:08 +0000 (09:03 -0400)
committerSean Hefty <sean.hefty@intel.com>
Tue, 6 Oct 2015 20:18:49 +0000 (13:18 -0700)
even though both have same value

Signed-off-by: Hal Rosenstock <hal@mellanox.com>
examples/rstream.c

index c88b5b7..34144b2 100644 (file)
@@ -421,7 +421,7 @@ static int client_connect(void)
                        rai_hints.ai_flags |= RAI_PASSIVE;
                        ret = rdma_getaddrinfo(src_addr, port, &rai_hints, &rai_src);
                } else {
-                       ai_hints.ai_flags |= RAI_PASSIVE;
+                       ai_hints.ai_flags |= AI_PASSIVE;
                        ret = getaddrinfo(src_addr, port, &ai_hints, &ai_src);
                }
                if (ret) {