lessone1 1 жил өмнө
parent
commit
170796ea70
1 өөрчлөгдсөн 5 нэмэгдсэн , 0 устгасан
  1. 5 0
      src/wn_utils.c

+ 5 - 0
src/wn_utils.c

@@ -279,6 +279,11 @@ int urldecode(char *str, int len)
     int value;
     int c;
 
+    if (data == RT_NULL)
+    {
+        return 0;
+    }
+
     while (len--)
     {
         if (*data == '+')