repositories
/
deb_libnfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a26bebe
)
nfs_fchmod_async: fix use-after-free
author
Arne Redlich
<arne.redlich@googlemail.com>
Mon, 17 Feb 2014 22:50:17 +0000
(23:50 +0100)
committer
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Thu, 20 Feb 2014 02:53:22 +0000
(18:53 -0800)
Spotted by clang analyzer
Signed-off-by: Arne Redlich <arne.redlich@googlemail.com>
lib/libnfs.c
patch
|
blob
|
blame
|
history
diff --git
a/lib/libnfs.c
b/lib/libnfs.c
index 9dbd2349b806940ecacb3e8a9608a2691cb7a059..b06402872a2cc6b5063b78d49dce466ac7a5886e 100644
(file)
--- a/
lib/libnfs.c
+++ b/
lib/libnfs.c
@@
-3312,7
+3312,6
@@
int nfs_fchmod_async(struct nfs_context *nfs, struct nfsfh *nfsfh, int mode, nfs
memcpy(data->fh.data.data_val, nfsfh->fh.data.data_val, data->fh.data.data_len);
if (nfs_chmod_continue_internal(nfs, data) != 0) {
- free_nfs_cb_data(data);
return -1;
}