Skip to content

Commit

Permalink
evi: fix shm duplicate of multiple params
Browse files Browse the repository at this point in the history
This fix ensures that all parameters are duplicated in SHM, instead of
only the first one.
Thanks go to Rob Moore for reporting it in #2669

(cherry picked from commit 3a9b4a1)
  • Loading branch information
razvancrainea committed Nov 2, 2021
1 parent f792bfa commit a865b2a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions evi/evi_params.c
Expand Up @@ -173,7 +173,7 @@ evi_params_p evi_dup_shm_params(evi_params_p pkg_params)
sp = (evi_param_p)(shm_params + 1);
p = (char *)(shm_params) + parambufs_size;
for (param = pkg_params->first, prev = NULL; param;
prev = sp, param = param->next) {
prev = sp++, param = param->next) {
sp->flags = param->flags;
sp->next = NULL;
sp->name.len = param->name.len;
Expand All @@ -194,7 +194,6 @@ evi_params_p evi_dup_shm_params(evi_params_p pkg_params)
shm_params->last = sp;
} else
shm_params->first = sp;
sp++;
}
return shm_params;
}
Expand Down

0 comments on commit a865b2a

Please sign in to comment.