2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 14:25:49 +00:00

sock: Fix ret code collection when dumping sockets option

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Pavel Emelyanov
2012-11-01 17:37:53 +03:00
parent f7477bc2a6
commit a723809c7d

View File

@@ -159,7 +159,7 @@ int restore_socket_opts(int sk, SkOptsEntry *soe)
tv.tv_usec = soe->so_rcv_tmo_usec;
ret |= restore_opt(sk, SOL_SOCKET, SO_RCVTIMEO, &tv);
ret = restore_bound_dev(sk, soe);
ret |= restore_bound_dev(sk, soe);
/* The restore of SO_REUSEADDR depends on type of socket */
@@ -226,7 +226,7 @@ int dump_socket_opts(int sk, SkOptsEntry *soe)
soe->has_so_no_check = true;
soe->so_no_check = val ? true : false;
ret = dump_bound_dev(sk, soe);
ret |= dump_bound_dev(sk, soe);
return ret;
}