Commit b1eca242 authored by Wayne Davison's avatar Wayne Davison

Avoid a crash if we read an index value without a valid first_flist.

parent 58b7b3d6
......@@ -265,7 +265,8 @@ int read_ndx_and_attrs(int f_in, int *iflag_ptr, uchar *type_ptr,
invalid_ndx:
rprintf(FERROR,
"Invalid file index: %d (%d - %d) with iflags %x [%s]\n",
ndx, first_flist->ndx_start - 1, first_flist->prev->ndx_end,
ndx, first_flist ? first_flist->ndx_start - 1 : -1,
first_flist ? first_flist->prev->ndx_end : -1,
iflags, who_am_i());
exit_cleanup(RERR_PROTOCOL);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment