aboutsummaryrefslogtreecommitdiffstats
path: root/g10/import.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/import.c')
-rw-r--r--g10/import.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/g10/import.c b/g10/import.c
index abc811d63..54d649b34 100644
--- a/g10/import.c
+++ b/g10/import.c
@@ -1182,6 +1182,8 @@ impex_filter_getval (void *cookie, const char *propname)
static char numbuf[20];
const char *result;
+ log_assert (ctrl && ctrl->magic == SERVER_CONTROL_MAGIC);
+
if (node->pkt->pkttype == PKT_USER_ID
|| node->pkt->pkttype == PKT_ATTRIBUTE)
{