[Samba] Bug in cac_Connect ?

Ben Greear greearb at candelatech.com
Thu Jul 13 23:34:48 GMT 2006


While working on adding support for local-binding, I found this piece of code
in libmsrpc.c.  Maybe I'm confused..but should that strcmp maybe be compared to != 0?

    /*change the server name in the server handle if necessary*/
    if(srv && hnd->server && strcmp(hnd->server, srv) == 0) {
       SAFE_FREE(hnd->server);
       hnd->server = SMB_STRDUP(srv);
    }

-- 
Ben Greear <greearb at candelatech.com>
Candela Technologies Inc  http://www.candelatech.com



More information about the samba mailing list