diff options
author | Andreas Schneider <asn@samba.org> | 2012-12-17 14:33:45 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2012-12-21 13:56:00 +0100 |
commit | d0e20998a232b793d3e5db7dff70c84d11d2c527 (patch) | |
tree | 2b27cdfc0fc1a93d8d722e3518db85e7c3e7e534 /source3/libads | |
parent | 3bd8c7dec60a26743e889df61c862516eb5bdcc3 (diff) | |
download | samba-d0e20998a232b793d3e5db7dff70c84d11d2c527.tar.gz samba-d0e20998a232b793d3e5db7dff70c84d11d2c527.tar.bz2 samba-d0e20998a232b793d3e5db7dff70c84d11d2c527.zip |
s3-libads: Fix copy&paste error in ads_keytab_add_entry().
Found by Coverity.
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'source3/libads')
-rw-r--r-- | source3/libads/kerberos_keytab.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libads/kerberos_keytab.c b/source3/libads/kerberos_keytab.c index b7df50dddf..83df0882f0 100644 --- a/source3/libads/kerberos_keytab.c +++ b/source3/libads/kerberos_keytab.c @@ -370,7 +370,7 @@ int ads_keytab_add_entry(ADS_STRUCT *ads, const char *srvPrinc) short_princ_s = talloc_asprintf(tmpctx, "%s/%s@%s", srvPrinc, machine_name, lp_realm()); - if (!princ_s) { + if (short_princ_s == NULL) { ret = -1; goto out; } |