Changeset 304


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).

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/docs/Changelog

    r303 r304  
    112.8.1:
     2        * Fix null pointer dereference in config parse handler for SetMailAlias
     3          (reported by Sergey)
    24        * Fix incorrect memset() in sh_kern.c (passed struct by value...),
    35          reported by Roman and Stefan
  • 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.