aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pop3.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/pop3.c b/pop3.c
index fb466902..907a5879 100644
--- a/pop3.c
+++ b/pop3.c
@@ -1370,8 +1370,9 @@ static int pop3_delete(int sock, struct query *ctl, int number)
if (ok != PS_SUCCESS)
return(ok);
- rec = find_uid_by_num(dofastuidl ? &ctl->oldsaved : &ctl->newsaved, number);
- rec->status = UID_DELETED;
+ if ((rec = find_uid_by_num(dofastuidl ? &ctl->oldsaved : &ctl->newsaved, number)))
+ rec->status = UID_DELETED;
+
return(PS_SUCCESS);
}