fruit: Fix CID 1323186 Dereference before null check
commit48d4aac563d8980571ae504dd9e63c0620eee4c6
authorVolker Lendecke <vl@samba.org>
Tue, 8 Sep 2015 06:18:02 +0000 (8 08:18 +0200)
committerMichael Adam <obnox@samba.org>
Tue, 8 Sep 2015 11:47:01 +0000 (8 13:47 +0200)
tree8eb8dc98b327e26bcc1166547c71cfe234882a02
parent04c86557195a014bd7e872014e6144c100ead0a1
fruit: Fix CID 1323186 Dereference before null check

In all other "goto fail;" paths we had already dereferenced fsp,
so the if-statement checking for fsp!=NULL was unnecessary. This
fix gives us an additional error message in case check_aapl fails.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Tue Sep  8 13:47:01 CEST 2015 on sn-devel-104
source3/modules/vfs_fruit.c