[network-manager-openvpn] import: allow large reneg-sec time values
- From: Thomas Haller <thaller src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-openvpn] import: allow large reneg-sec time values
- Date: Sat, 1 Oct 2016 13:43:50 +0000 (UTC)
commit 5f115c5af505cbe67845459249b52da5b2276c65
Author: Thomas Haller <thaller redhat com>
Date: Sat Oct 1 15:41:05 2016 +0200
import: allow large reneg-sec time values
https://bugzilla.redhat.com/show_bug.cgi?id=1380904
Fixes: 5f592d6aa5aa481eb65be4e630c00f7908316573
properties/import-export.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/properties/import-export.c b/properties/import-export.c
index 3fc7c36..8d9ea4f 100644
--- a/properties/import-export.c
+++ b/properties/import-export.c
@@ -981,7 +981,7 @@ do_import (const char *path, const char *contents, gsize contents_len, GError **
if (NM_IN_STRSET (params[0], NMV_OVPN_TAG_RENEG_SEC)) {
if (!args_params_check_nargs_n (params, 1, &line_error))
goto handle_line_error;
- if (!args_params_parse_int64 (params, 1, 0, 604800, &v_int64, &line_error))
+ if (!args_params_parse_int64 (params, 1, 0, G_MAXINT, &v_int64, &line_error))
goto handle_line_error;
setting_vpn_add_data_item_int64 (s_vpn, NM_OPENVPN_KEY_RENEG_SECONDS, v_int64);
continue;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]