pidgin: 5d43b018: Fix CID #385

rlaager at pidgin.im rlaager at pidgin.im
Fri Nov 14 02:45:55 EST 2008


-----------------------------------------------------------------
Revision: 5d43b0181fd3233f022058ee9c660945ece963bc
Ancestor: 69be96ca0713f233452e475f0553042ab6fcf808
Author: rlaager at pidgin.im
Date: 2008-11-14T06:42:18
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/5d43b0181fd3233f022058ee9c660945ece963bc

Modified files:
        libpurple/util.c

ChangeLog: 

Fix CID #385

-------------- next part --------------
============================================================
--- libpurple/util.c	f22bf25f4e2696aa0a1792d2a91fdd711d6057fb
+++ libpurple/util.c	809ba340fe0f6a5618c48e0aa3374f813ad2a7b5
@@ -4151,6 +4151,8 @@ purple_email_is_valid(const char *addres
 	const char *c, *domain;
 	static char *rfc822_specials = "()<>@,;:\\\"[]";
 
+	g_return_val_if_fail(address != NULL, FALSE);
+
 	/* first we validate the name portion (name at domain) (rfc822)*/
 	for (c = address;  *c;  c++) {
 		if (*c == '\"' && (c == address || *(c - 1) == '.' || *(c - 1) == '\"')) {


More information about the Commits mailing list