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:
faa1558
)
nfs_fchown_async: fix use-after-free
author
Arne Redlich
<arne.redlich@googlemail.com>
Mon, 17 Feb 2014 22:51:48 +0000
(23:51 +0100)
committer
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Thu, 20 Feb 2014 02:54:37 +0000
(18:54 -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 b06402872a2cc6b5063b78d49dce466ac7a5886e..910e4d2cc5a1b054a22d4df4dcd9789324c96b6f 100644
(file)
--- a/
lib/libnfs.c
+++ b/
lib/libnfs.c
@@
-3446,7
+3446,6
@@
int nfs_fchown_async(struct nfs_context *nfs, struct nfsfh *nfsfh, int uid, int
memcpy(data->fh.data.data_val, nfsfh->fh.data.data_val, data->fh.data.data_len);
if (nfs_chown_continue_internal(nfs, data) != 0) {
- free_nfs_cb_data(data);
return -1;
}