Skip to content

Commit

Permalink
In zootcl_stat_completion_callback only set evPtr->data.stat when sta…
Browse files Browse the repository at this point in the history
…t is non-NULL
  • Loading branch information
Garrett McGrath committed Jun 19, 2018
1 parent 1331507 commit 2dd15d0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion generic/zookeepertcl.c
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,10 @@ zootcl_stat_completion_callback (int rc, const struct Stat *stat, const void *co

evPtr->data.rc = rc;
evPtr->data.dataObj = NULL;
evPtr->data.stat = *stat;

if (stat != NULL) {
evPtr->data.stat = *stat;
}

evPtr->zo = ztc->zo;
ckfree(ztc);
Expand Down

0 comments on commit 2dd15d0

Please sign in to comment.