uhttpd: fix segfault triggered by Basic Auth checking
[openwrt/openwrt.git] / package / uhttpd / src / uhttpd-utils.c
index 8a06c930af6d99c748b33f1e30e149904acd1448..3821eb54cb18df8328d79d583d80d3a0bd7dc4bd 100644 (file)
@@ -728,8 +728,6 @@ int uh_auth_check(
                                        req->realm = realm;
                                        break;
                                }
-
-                               realm = NULL;
                        }
 
                        /* found a realm matching the username */