diff options
Diffstat (limited to 'sm/base64.c')
-rw-r--r-- | sm/base64.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sm/base64.c b/sm/base64.c index a176c70b2..4d1620975 100644 --- a/sm/base64.c +++ b/sm/base64.c @@ -170,10 +170,10 @@ base64_reader_cb (void *cb_value, char *buffer, size_t count, size_t *nread) if (parm->assume_pem) { /* wait for the header line */ + parm->linelen = parm->readpos = 0; if (!parm->have_lf || strncmp (parm->line, "-----BEGIN ", 11) - || strncmp (parm->line+11, "PGP ", 4)) + || !strncmp (parm->line+11, "PGP ", 4)) goto next; - parm->linelen = parm->readpos = 0; parm->is_pem = 1; } else if (parm->assume_base64) |