Changeset 304 for trunk/src


Ignore:
Timestamp:
Nov 13, 2010, 10:51:12 PM (14 years ago)
Author:
katerina
Message:

Fix for ticket #228 (null poiter dereference in handler for SetMailAlias).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_nmail.c

    r276 r304  
    234234              SH_FREE(array);
    235235
    236               if (newalias && newalias->recipient_list == NULL)
     236              if (newalias == NULL || newalias->recipient_list == NULL)
    237237                {
    238                   SH_FREE(newalias);
     238                  if (newalias)
     239                    SH_FREE(newalias);
    239240                  goto err;
    240241                }
Note: See TracChangeset for help on using the changeset viewer.