Browse Source

xhttp: do not call memset on a null-pointer, related to GH #2619

Henning Westerholt 4 years ago
parent
commit
2db8884945
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/modules/xhttp/xhttp_trans.c

+ 1 - 1
src/modules/xhttp/xhttp_trans.c

@@ -66,7 +66,7 @@ int xhttp_tr_eval_xhttpurl(
 					(char *)pkg_malloc((val->rs.len + 1) * sizeof(char));
 			if(_httpurl_str.s == NULL) {
 				PKG_MEM_ERROR;
-				memset(&_httpurl_str.s, 0, sizeof(str));
+				memset(&_httpurl_str, 0, sizeof(str));
 				return -1;
 			}
 		}