1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

libsmb: Fix CID 1034606 Incorrect pointer comparison

Signed-off-by: Anoop C S <anoopcs@redhat.com>
Reviewed-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>

Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Wed Sep  9 21:33:49 CEST 2015 on sn-devel-104
This commit is contained in:
Anoop C S 2015-09-09 06:37:21 +00:00 committed by Michael Adam
parent b63b53c842
commit a44a0c47cb

View File

@ -140,7 +140,7 @@ SMBC_print_file_ctx(SMBCCTX *c_file,
}
fid2 = f_open_pj2(c_print, printq);
if (fid2 < 0) {
if (fid2 == NULL) {
saverr = errno; /* Save errno */
smbc_getFunctionClose(c_file)(c_file, fid1);
errno = saverr;