]> git.openfabrics.org - ~shefty/librdmacm.git/commitdiff
Refresh of fork
authorSean Hefty <sean.hefty@intel.com>
Tue, 17 Jul 2012 19:46:35 +0000 (12:46 -0700)
committerSean Hefty <sean.hefty@intel.com>
Tue, 17 Jul 2012 19:46:35 +0000 (12:46 -0700)
src/preload.c

index ed952d7ef36aa055e1595654d8278acca7492691..6cc0d729c826608fd457e731c31cc4bff2d81184 100644 (file)
@@ -836,14 +836,14 @@ pid_t fork(void)
        ret = real.getsockname(sfd, (struct sockaddr *) &sin6, &len);
        if (ret)
                goto out;
-       sin6.sin6_flowinfor = sin6.sin6_scope_id = 0;
+       sin6.sin6_flowinfo = sin6.sin6_scope_id = 0;
        memset(&sin6.sin6_addr, 0, sizeof sin6.sin6_addr);
 
        sem = sem_open("/rsocket_fork", O_CREAT, 0644, 1);
        if (sem == SEM_FAILED)
                goto out;
 
-       lfd = rsocket(sa.ss_family, SOCK_STREAM, 0);
+       lfd = rsocket(sin6.sin6_family, SOCK_STREAM, 0);
        if (lfd < 0)
                goto sclose;