/soc/2015/mmcc/main: d7433629e94d: fix null pointer deref when o...

Michael McConville <[email protected]>
Newsgroups gmane.comp.gnome.gaim.cvs
Message-ID <[email protected]>
Changeset: d7433629e94d511914df5e3c35a18cf52ac4195b
Author:	 Michael McConville <[email protected]>
Date:	 2015-06-26 13:58 -0400
Branch:	 default
URL: https://hg.pidgin.im/soc/2015/mmcc/main/rev/d7433629e94d

Description:

fix null pointer deref when opening some plugins' config menus

diffstat:

 pidgin/gtkplugin.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff --git a/pidgin/gtkplugin.c b/pidgin/gtkplugin.c
--- a/pidgin/gtkplugin.c
+++ b/pidgin/gtkplugin.c
@@ -213,7 +213,7 @@ pidgin_plugin_get_config_frame(PurplePlu
 	if (PIDGIN_IS_PLUGIN_INFO(info))
 		priv = PIDGIN_PLUGIN_INFO_GET_PRIVATE(info);
 
-	if (priv)
+	if (priv && priv->config_frame_cb)
 		config = priv->config_frame_cb(plugin);
 
 	if (!config && purple_plugin_info_get_pref_frame_cb(info))

_______________________________________________
Commits mailing list
[email protected]
https://pidgin.im/cgi-bin/mailman/listinfo/commits
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.