diff options
author | Anders Waldenborg <anders@0x63.nu> | 2020-01-29 22:58:46 +0100 |
---|---|---|
committer | Anders Waldenborg <anders@0x63.nu> | 2020-01-30 07:13:12 +0100 |
commit | 8604ed80690d80825408df751afcdf3d7565d8e5 (patch) | |
tree | 6f4368de03da821ae0ad7bd3417e01094b9f682b | |
parent | 68ccb8021a838066f0951d4b2817eb6b6f10a843 (diff) | |
download | slirp-8604ed80690d80825408df751afcdf3d7565d8e5.zip slirp-8604ed80690d80825408df751afcdf3d7565d8e5.tar.gz slirp-8604ed80690d80825408df751afcdf3d7565d8e5.tar.bz2 |
state: fix loading of guestfwd state
The refactoring done in commit d181d14b "slirp: use a dedicated field
for chardev pointer" forgot to change one place in slirp_state_load
where 'ex_exec' was used to store the chardev ptr. This broke loading
of saved state.
Later commit 4f38cfb5 "slirp: remove unused EMU_RSH" removed this line
all together, as it now looked like it didn't do anything.
This commit ensures that guestfwd is properly setup on the socket when
loading state.
Signed-off-by: Anders Waldenborg <anders@0x63.nu>
-rw-r--r-- | src/state.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/state.c b/src/state.c index 12e607e..22af77b 100644 --- a/src/state.c +++ b/src/state.c @@ -366,6 +366,8 @@ int slirp_state_load(Slirp *slirp, int version_id, SlirpReadCb read_cb, if (!ex_ptr) { return -EINVAL; } + + so->guestfwd = ex_ptr; } return slirp_vmstate_load_state(&f, &vmstate_slirp, slirp, version_id); |