changeset 13665:ee026e289bc4

[gaim-migrate @ 16067] Fix Coverity CID 203: Check that the "verifiedip" is not NULL before using it in a strcmp. I'm not sure this ever actually happens. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 20 Apr 2006 04:49:12 +0000
parents 4132d997ccec
children 915f26ce1d07
files src/protocols/oscar/peer.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/oscar/peer.c	Thu Apr 20 04:45:06 2006 +0000
+++ b/src/protocols/oscar/peer.c	Thu Apr 20 04:49:12 2006 +0000
@@ -683,7 +683,8 @@
 	{
 		conn->flags |= PEER_CONNECTION_FLAG_TRIED_CLIENTIP;
 
-		if (strcmp(conn->verifiedip, conn->clientip))
+		if ((conn->verifiedip == NULL) ||
+			strcmp(conn->verifiedip, conn->clientip))
 		{
 			if (conn->type == OSCAR_CAPABILITY_DIRECTIM)
 			{