if (CMT_GetSSLSocketStatus(mControl, mSocket, &pickledStatus, &level) != PR_FAILURE)
if (NS_SUCCEEDED(CMT_GetSSLSocketStatus(mControl, mSocket, &pickledStatus, &level)))
nsPSMSocketInfo::SetPickledStatus(){    PR_FREEIF(mPickledStatus);    long level;    CMTItem pickledStatus = {0, nsnull, 0};    unsigned char* ret    = nsnull;    if (CMT_GetSSLSocketStatus(mControl, mSocket, &pickledStatus, &level) != PR_FAILURE)    {                ret = (unsigned char*) PR_Malloc( (SSMSTRING_PADDED_LENGTH(pickledStatus.len) + sizeof(int)) );        if (ret)         {            *(int*)ret = pickledStatus.len;            memcpy(ret+sizeof(int), pickledStatus.data, *(int*)ret);        }        PR_FREEIF(pickledStatus.data);        mPickledStatus = ret;    }    return NS_OK;}