pidgin: 68cb5581: Don't corrupt memory if nick can not be ...

sadrul at pidgin.im sadrul at pidgin.im
Sat Apr 25 18:21:05 EDT 2009


-----------------------------------------------------------------
Revision: 68cb5581c551eabb57bcdf437642ee9e6786bc64
Ancestor: 9241bb1231eecdbed018552552fe466dc01fd57e
Author: sadrul at pidgin.im
Date: 2009-04-25T22:18:51
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/68cb5581c551eabb57bcdf437642ee9e6786bc64

Modified files:
        libpurple/protocols/irc/msgs.c

ChangeLog: 

Don't corrupt memory if nick can not be changed.
You can be upset if you can't change your nick, I guess, but that's no
reason to corrupt your memory.

-------------- next part --------------
============================================================
--- libpurple/protocols/irc/msgs.c	f550f818e13254325cbcc2f67e71ee5ed1cae580
+++ libpurple/protocols/irc/msgs.c	5f18e4409b630a4b438870ce14851d31d88b3fa8
@@ -1019,6 +1019,7 @@ void irc_msg_nickused(struct irc_conn *i
 				    _("Nickname in use"), buf);
 		g_free(buf);
 		g_free(irc->reqnick);
+		return;
 	}
 
 	if (strlen(args[1]) < strlen(irc->reqnick) || irc->nickused)


More information about the Commits mailing list