diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2018-02-10 19:24:03 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2018-02-10 19:24:03 +0000 |
commit | 95744799b696198aa9eb358d4f8fbaa002b34ef9 (patch) | |
tree | ebd52516727489060536237430b52999f5a8df1f | |
parent | 1ffc6b79cf2c04f0e94831f36cf5277d9a2a3964 (diff) | |
download | pamela-95744799b696198aa9eb358d4f8fbaa002b34ef9.tar.gz pamela-95744799b696198aa9eb358d4f8fbaa002b34ef9.tar.xz pamela-95744799b696198aa9eb358d4f8fbaa002b34ef9.zip |
fix conversation protocol parsing in pamelad
-rw-r--r-- | src/pamela/pamelad.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pamela/pamelad.c b/src/pamela/pamelad.c index dd8ec17..84730c8 100644 --- a/src/pamela/pamelad.c +++ b/src/pamela/pamelad.c @@ -105,6 +105,7 @@ static int converse (int n, struct pam_message const **msg, struct pam_response len = v.iov_len - 2 ; if (s[0] != 'C') return PAM_ABORT ; if (s[1]) return s[1] ; + s += 2 ; res = malloc(n * sizeof(struct pam_response)) ; if (!res) return PAM_BUF_ERR ; for (uint32_t i = 0 ; i < n ; i++) |