/soc/2015/mmcc/rand: d702ea80e16f: Check for SSL support more re...

Michael McConville <[email protected]>
Newsgroups gmane.comp.gnome.gaim.cvs
Message-ID <[email protected]>
Changeset: d702ea80e16ffe532279c43e244528aa9eefc9ed
Author:	 Michael McConville <[email protected]>
Date:	 2015-08-15 17:14 -0400
Branch:	 default
URL: https://hg.pidgin.im/soc/2015/mmcc/rand/rev/d702ea80e16f

Description:

Check for SSL support more reliably

diffstat:

 libpurple/util.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff --git a/libpurple/util.c b/libpurple/util.c
--- a/libpurple/util.c
+++ b/libpurple/util.c
@@ -4997,7 +4997,7 @@ purple_util_random(void *buf, size_t len
 	PurpleSslOps *ops = purple_ssl_get_ops();
 
 	/* use SSL API if available... */
-	if (ops && ops->rand_bytes) {
+	if (purple_ssl_is_supported() && ops && ops->rand_bytes) {
 		return (ops->rand_bytes)(buf, len);
 	/* ...otherwise, fall back to /dev/urandom */
 	} else {

_______________________________________________
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.