summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--panels/network/connection-editor/ce-page-ip4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/panels/network/connection-editor/ce-page-ip4.c b/panels/network/connection-editor/ce-page-ip4.c
index ccefae8ee..109e3ff36 100644
--- a/panels/network/connection-editor/ce-page-ip4.c
+++ b/panels/network/connection-editor/ce-page-ip4.c
@@ -740,7 +740,7 @@ ui_to_setting (CEPageIP4 *page)
goto out;
}
- if (text_gateway && inet_pton (AF_INET, text_gateway, &tmp_gateway) <= 0) {
+ if (text_gateway && *text_gateway && inet_pton (AF_INET, text_gateway, &tmp_gateway) <= 0) {
goto out;
}