diff options
author | Amar Tumballi <amar@gluster.com> | 2010-08-18 08:56:56 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2010-08-18 07:41:58 -0700 |
commit | b189d31f61ac3436bf0ad9ae2bff13efccbc06d0 (patch) | |
tree | 7f6b0716b8f5bd9c8688f3469631c8126955026c /xlators/mount/fuse/src/fuse-resolve.c | |
parent | 1aa2219484e040a950d55d9414e2b7e77df37fe7 (diff) |
fuse: prevent NULL dereference in case resolve on path failed.
Signed-off-by: Amar Tumballi <amar@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 1391 ()
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1391
Diffstat (limited to 'xlators/mount/fuse/src/fuse-resolve.c')
-rw-r--r-- | xlators/mount/fuse/src/fuse-resolve.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/xlators/mount/fuse/src/fuse-resolve.c b/xlators/mount/fuse/src/fuse-resolve.c index b90ef3d5f8d..77a55cd701f 100644 --- a/xlators/mount/fuse/src/fuse-resolve.c +++ b/xlators/mount/fuse/src/fuse-resolve.c @@ -661,8 +661,6 @@ gf_resolve_done (fuse_state_t *state) static int gf_resolve_all (fuse_state_t *state) { - xlator_t *this = NULL; - if (state->resolve_now == NULL) { state->resolve_now = &state->resolve; @@ -682,7 +680,7 @@ gf_resolve_all (fuse_state_t *state) gf_resolve_done (state); } else { - gf_log (this->name, GF_LOG_ERROR, + gf_log ("fuse-resolve", GF_LOG_ERROR, "Invalid pointer for state->resolve_now"); } |