From 2486205f76a746a2619aabf641689965ae2ef00d Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Fri, 26 Aug 2011 10:07:03 +0200 Subject: Protect against possible NULL pointer Signed-off-by: Thomas Jarosch --- uid_db.c | 2 ++ 1 file changed, 2 insertions(+) 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. -- cgit v1.2.3