Browse Source

dereference value_len when reporting OOM

dennis 4 years ago
parent
commit
55a0390477
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/handle_form.inl

+ 1 - 1
src/handle_form.inl

@@ -100,7 +100,7 @@ url_encoded_field_get(const struct mg_connection *conn,
 		mg_cry_internal(conn,
 		                "%s: Not enough memory (required: %lu)",
 		                __func__,
-		                (unsigned long)(value_len + 1));
+		                (unsigned long)(*value_len + 1));
 		return MG_FORM_FIELD_STORAGE_ABORT;
 	}