diff options
Diffstat (limited to 'agent/query.c')
-rw-r--r-- | agent/query.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/agent/query.c b/agent/query.c index 795e214e3..09aada0fd 100644 --- a/agent/query.c +++ b/agent/query.c @@ -110,6 +110,9 @@ getpin_cb (void *opaque, const void *buffer, size_t length) { struct entry_parm_s *parm = opaque; + if (!buffer) + return 0; + /* we expect the pin to fit on one line */ if (parm->lines || length >= parm->size) return ASSUAN_Too_Much_Data; |