Commit 6ee98dac authored by Niels Möller's avatar Niels Möller

Typo fix.

Rev: src/lshd-userauth.c:1.8
Rev: src/pty-helper.c:1.6
parent 6d21be70
......@@ -476,7 +476,7 @@ spawn_helper(const char *program, uid_t uid, gid_t gid)
type = SOCK_STREAM;
#endif
if (socketpair(AF_UNIX, SOCK_STREAM, 0, pipe) < 0)
if (socketpair(AF_UNIX, type, 0, pipe) < 0)
{
werror("socketpair failed: %e.\n", errno);
return -1;
......
......@@ -63,7 +63,7 @@ pty_send_message(int socket, const struct pty_message *message)
io.iov_len = sizeof(message->header);
#ifdef SCM_CREDENTIALS
creds_size = sizeof(struct ucreds);
creds_size = sizeof(struct ucred);
#else
creds_size = 0;
#endif
......@@ -158,7 +158,7 @@ pty_recv_message(int socket, struct pty_message *message)
int res;
#if defined (SCM_CREDENTIALS)
creds_size = sizeof(struct ucreds);
creds_size = sizeof(struct ucred);
#elif defined (SCM_UCRED)
creds_size = ucred_size();
#else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment