Message ID | 1477391963-9364-1-git-send-email-peng.liang5@zte.com.cn (mailing list archive) |
---|---|
State | Not Applicable, archived |
Delegated to: | christophe varoqui |
Headers | show |
diff --git a/libmultipath/dict.c b/libmultipath/dict.c index 7c21e72..b02a29b 100644 --- a/libmultipath/dict.c +++ b/libmultipath/dict.c @@ -573,7 +573,7 @@ set_fast_io_fail(vector strvec, void *ptr) if (strcmp(buff, "off") == 0) *int_ptr = MP_FAST_IO_FAIL_OFF; else if (sscanf(buff, "%d", int_ptr) != 1 || - *int_ptr < MP_FAST_IO_FAIL_ZERO) + *int_ptr < 0) *int_ptr = MP_FAST_IO_FAIL_UNSET; else if (*int_ptr == 0) *int_ptr = MP_FAST_IO_FAIL_ZERO;