summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2018-02-10 19:24:03 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2018-02-10 19:24:03 +0000
commit95744799b696198aa9eb358d4f8fbaa002b34ef9 (patch)
treeebd52516727489060536237430b52999f5a8df1f
parent1ffc6b79cf2c04f0e94831f36cf5277d9a2a3964 (diff)
downloadpamela-95744799b696198aa9eb358d4f8fbaa002b34ef9.tar.xz
fix conversation protocol parsing in pamelad
-rw-r--r--src/pamela/pamelad.c1
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++)