Fix Coverity ID 480
authorVolker Lendecke <vl@samba.org>
Sun, 23 Mar 2008 16:53:05 +0000 (17:53 +0100)
committerVolker Lendecke <vl@samba.org>
Sun, 23 Mar 2008 17:28:23 +0000 (18:28 +0100)
(This used to be commit 45677e8694f0e383baa65712faec6a565ec0ce5c)

source3/utils/net_ads.c

index e9750db83a12f07165d02c28a20acf229f163b19..28ae7d7cedcd70df372063b7dac6d22e298470ba 100644 (file)
@@ -1679,7 +1679,7 @@ static int net_ads_password(int argc, const char **argv)
                fill in the KDC's addresss */
        ads_connect(ads);
 
-       if (!ads || !ads->config.realm) {
+       if (!ads->config.realm) {
                d_fprintf(stderr, "Didn't find the kerberos server!\n");
                return -1;
        }