changeset 15706:15123896e5c9

Return -1 as 'invalid port' if passed NULL in gaim_dnsquery_get_port()
author Evan Schoenberg <evan.s@dreskin.net>
date Sun, 25 Feb 2007 19:18:12 +0000
parents 6a0b9734a722
children fe5398f498ee
files libpurple/dnsquery.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/dnsquery.c	Sun Feb 25 18:43:25 2007 +0000
+++ b/libpurple/dnsquery.c	Sun Feb 25 19:18:12 2007 +0000
@@ -938,7 +938,7 @@
 int
 gaim_dnsquery_get_port(GaimDnsQueryData *query_data)
 {
-	g_return_val_if_fail(query_data != NULL, NULL);
+	g_return_val_if_fail(query_data != NULL, -1);
 
 	return query_data->port;	
 }