mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +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:
parent
b63b53c842
commit
a44a0c47cb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user