Initialize the file descriptor in the files_struct before trying to close it. Otherwi...
commit5c488cfb79873287e769622fd5da43b7a735e29c
authorChristof Schmitt <christof.schmitt@us.ibm.com>
Wed, 12 Jun 2013 21:49:53 +0000 (12 14:49 -0700)
committerJeremy Allison <jra@samba.org>
Wed, 12 Jun 2013 23:43:17 +0000 (13 01:43 +0200)
treef1b58574a21c130776da6e9da120917f181bb25e
parentd6ce1402a964858bf40b23f34df01f1f01839d3a
Initialize the file descriptor in the files_struct before trying to close it. Otherwise, if one of the SETXATTR calls had failed, the close() call will return EBADF.

Signed-off-by: Christof Schmitt <christof.schmitt@us.ibm.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Richard Sharpe <rsharpe@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Jun 13 01:43:18 CEST 2013 on sn-devel-104
source3/modules/vfs_streams_xattr.c