aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Jarosch <thomas.jarosch@intra2net.com>2011-08-26 10:07:03 +0200
committerMatthias Andree <matthias.andree@gmx.de>2016-12-11 22:06:08 +0100
commit2486205f76a746a2619aabf641689965ae2ef00d (patch)
tree6247c5d82cbfe80fd6ab78219866534810a2463e
parentbe13dfd5947f0e003cfe5b00f311de6ba69b99d7 (diff)
downloadfetchmail-2486205f76a746a2619aabf641689965ae2ef00d.tar.gz
fetchmail-2486205f76a746a2619aabf641689965ae2ef00d.tar.bz2
fetchmail-2486205f76a746a2619aabf641689965ae2ef00d.zip
Protect against possible NULL pointer
Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net.com>
-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.