diff options
author | Thomas Jarosch <thomas.jarosch@intra2net.com> | 2011-08-26 10:07:03 +0200 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2016-12-11 22:06:08 +0100 |
commit | 2486205f76a746a2619aabf641689965ae2ef00d (patch) | |
tree | 6247c5d82cbfe80fd6ab78219866534810a2463e | |
parent | be13dfd5947f0e003cfe5b00f311de6ba69b99d7 (diff) | |
download | fetchmail-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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. |