diff --git a/confluent_server/confluent/sockapi.py b/confluent_server/confluent/sockapi.py index da857de3..1427f0c4 100644 --- a/confluent_server/confluent/sockapi.py +++ b/confluent_server/confluent/sockapi.py @@ -248,8 +248,8 @@ def _unixdomainhandler(): while True: cnn, addr = unixsocket.accept() creds = cnn.getsockopt(socket.SOL_SOCKET, SO_PEERCRED, - struct.calcsize('3i')) - pid, uid, gid = struct.unpack('3i', creds) + struct.calcsize('iII')) + pid, uid, gid = struct.unpack('iII', creds) skipauth = False if uid in (os.getuid(), 0): #this is where we happily accept the person