Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

check for null mailstream pointer in mailstream_close

  • Loading branch information...
commit 0c6dc62833c14facd01128e15c90313ed28c7080 1 parent 7499e28
@dsachitano authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/data-types/mailstream.c
View
4 src/data-types/mailstream.c
@@ -281,6 +281,10 @@ void mailstream_set_low(mailstream * s, mailstream_low * low)
int mailstream_close(mailstream * s)
{
+
+ if (s == NULL)
+ return 0;
+
if (s->idle != NULL) {
mailstream_cancel_free(s->idle);
}
Please sign in to comment.
Something went wrong with that request. Please try again.