/pidgin/main: 700097e7206b: Zephyr: fix username validation
Tomasz Wasilczyk
twasilczyk at pidgin.im
Tue Apr 15 15:47:36 EDT 2014
Changeset: 700097e7206bb0e319748df5d8422bd6c1064051
Author: Tomasz Wasilczyk <twasilczyk at pidgin.im>
Date: 2014-04-15 21:47 +0200
Branch: default
URL: https://hg.pidgin.im/pidgin/main/rev/700097e7206b
Description:
Zephyr: fix username validation
diffstat:
libpurple/protocols/zephyr/zephyr.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diffs (16 lines):
diff --git a/libpurple/protocols/zephyr/zephyr.c b/libpurple/protocols/zephyr/zephyr.c
--- a/libpurple/protocols/zephyr/zephyr.c
+++ b/libpurple/protocols/zephyr/zephyr.c
@@ -2237,6 +2237,12 @@ static const char *zephyr_normalize(cons
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;
More information about the Commits
mailing list