]> granicus.if.org Git - postgresql/commitdiff
Typo fix.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 2 Jun 2011 17:36:48 +0000 (13:36 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 2 Jun 2011 17:37:19 +0000 (13:37 -0400)
src/port/getpeereid.c

index 3b826f01e87fd6843a66b4ca32d4f78c5b38a3b4..e10a140624f7c3035f0311384f8614da89e0cffe 100644 (file)
@@ -69,7 +69,7 @@ getpeereid(int sock, uid_t *uid, gid_t *gid)
        *gid = ucred_getegid(ucred);
        ucred_free(ucred);
 
-       if (*uid == (pid_t)(-1) || *gid == (gid_t)(-1))
+       if (*uid == (uid_t)(-1) || *gid == (gid_t)(-1))
                return -1;
        return 0;
 #else