aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--uid_db.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/uid_db.c b/uid_db.c
index 61da7322..d4009d39 100644
--- a/uid_db.c
+++ b/uid_db.c
@@ -458,6 +458,8 @@ struct uid_db_record *last_uid_in_db(struct uid_db *db, char const *id)
/** destruction */
static void free_uid_list(struct uid_db_record *rec)
{
+ if (!rec) return NULL;
+
/*
Free the list of uid_db_records starting with
the record pointed to by rec.