changeset 26652:bed515729afe

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.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sat, 25 Apr 2009 22:18:51 +0000
parents a373ce73add0
children 75cbde35d8e3
files libpurple/protocols/irc/msgs.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/irc/msgs.c	Sat Apr 25 19:09:36 2009 +0000
+++ b/libpurple/protocols/irc/msgs.c	Sat Apr 25 22:18:51 2009 +0000
@@ -1019,6 +1019,7 @@
 				    _("Nickname in use"), buf);
 		g_free(buf);
 		g_free(irc->reqnick);
+		return;
 	}
 
 	if (strlen(args[1]) < strlen(irc->reqnick) || irc->nickused)