Revision: 16067
Author: thekingant
Date: 2006-04-19 21:49:12 -0700 (Wed, 19 Apr 2006)
ViewCVS: http://svn.sourceforge.net/gaim/?rev=16067&view=rev
Log Message:
-----------
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.
Modified Paths:
--------------
trunk/src/protocols/oscar/peer.c
Modified: trunk/src/protocols/oscar/peer.c
===================================================================
--- trunk/src/protocols/oscar/peer.c 2006-04-20 04:45:06 UTC (rev 16066)
+++ trunk/src/protocols/oscar/peer.c 2006-04-20 04:49:12 UTC (rev 16067)
@@ -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)
{
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|