[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH 1/3 master f15-branch] Fix parsing of ipv6 --gateway in kickstart (#677609)



---
 loader/kickstart.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/loader/kickstart.c b/loader/kickstart.c
index 89cff39..5b1a57e 100644
--- a/loader/kickstart.c
+++ b/loader/kickstart.c
@@ -717,7 +717,7 @@ static void setKickstartNetwork(struct loaderData_s * loaderData, PyObject *hand
             loaderData->gateway = gateway;
         } else if (rc == 0) {
 #ifdef ENABLE_IPV6
-            if ((rc == inet_pton(AF_INET6, gateway, &addr6)) == 1) {
+            if ((rc = inet_pton(AF_INET6, gateway, &addr6)) == 1) {
                 loaderData->gateway6 = gateway;
             } else if (rc == 0) {
 #endif
-- 
1.7.2


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]