Mercurial > pidgin
changeset 24424:2d677e8fe6d0
Fix CID #385
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Fri, 14 Nov 2008 06:42:18 +0000 |
parents | 8b5b73c768e4 |
children | f3c48d7db093 |
files | libpurple/util.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/util.c Fri Nov 14 06:41:47 2008 +0000 +++ b/libpurple/util.c Fri Nov 14 06:42:18 2008 +0000 @@ -4151,6 +4151,8 @@ const char *c, *domain; static char *rfc822_specials = "()<>@,;:\\\"[]"; + g_return_val_if_fail(address != NULL, FALSE); + /* first we validate the name portion (name@domain) (rfc822)*/ for (c = address; *c; c++) { if (*c == '\"' && (c == address || *(c - 1) == '.' || *(c - 1) == '\"')) {