# HG changeset patch # User Mark Doliner # Date 1145508552 0 # Node ID ee026e289bc40da16f0d349ce34ca85790858f44 # Parent 4132d997cceccd591ef90c1ed9fd45c0b06e56a6 [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 diff -r 4132d997ccec -r ee026e289bc4 src/protocols/oscar/peer.c --- 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) {