aft: Update afhi after addblob.
authorAndre Noll <maan@tuebingen.mpg.de>
Wed, 29 Apr 2020 15:48:09 +0000 (17:48 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Fri, 8 May 2020 15:20:19 +0000 (17:20 +0200)
The old status_item_ls_data.afhi might refer to unmapped memory.

aft.c

diff --git a/aft.c b/aft.c
index 5595071..b4adbac 100644 (file)
--- a/aft.c
+++ b/aft.c
@@ -2620,6 +2620,10 @@ static int aft_event_handler(enum afs_events event, struct para_buffer *pb,
                 * current status items are affected and simply recreate them
                 * every time.
                 */
+               ret = get_afhi_of_row(current_aft_row,
+                       &status_item_ls_data.afhi);
+               if (ret < 0)
+                       return ret;
                make_status_items();
                return 0;
        } default: