Tue, 15 Apr 2014 21:47:29 +0200
Zephyr: fix username validation
| libpurple/protocols/zephyr/zephyr.c | file | annotate | diff | comparison | revisions |
--- a/libpurple/protocols/zephyr/zephyr.c Tue Apr 15 21:20:13 2014 +0200 +++ b/libpurple/protocols/zephyr/zephyr.c Tue Apr 15 21:47:29 2014 +0200 @@ -2237,6 +2237,12 @@ PurpleConnection *gc; char *tmp; + if (account == NULL) { + if (strlen(who) >= sizeof(buf)) + return NULL; + return who; + } + gc = purple_account_get_connection(account); if (gc == NULL) return NULL;