if (!cmSock->isUnix)
cmSock = (CMSocket *)sock  if (!cmSock || !cmSock->isUnix)
nsPSMShimVerifyUnixSocket(CMTSocket sock){#ifndef XP_UNIX    return CMTFailure;#else        int  rv;    CMSocket  *cmSock = (CMSocket *)sock;    struct stat statbuf;    if (!cmSock->isUnix)         return CMTFailure;        rv = stat(cmSock->netAddr.local.path, &statbuf);    if (rv < 0 || statbuf.st_uid != geteuid() )    {        PR_Close(cmSock->fd);        cmSock->fd = NULL;        PR_Free(cmSock);        return CMTFailure;    }    return CMTSuccess;   #endif}