mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:31:41 +03:00
lib: add asserts that hostname has content
For all network related protocols there must be a non-blank hostname used. This change adds a few asserts in some places to make debug/tests catch mistakes if any such would slip in. Closes #19146
This commit is contained in:
parent
55e0526566
commit
7f19fa9819
3 changed files with 6 additions and 1 deletions
|
|
@ -458,6 +458,7 @@ struct Curl_addrinfo *Curl_doh(struct Curl_easy *data,
|
|||
|
||||
DEBUGASSERT(conn);
|
||||
DEBUGASSERT(!data->state.async.doh);
|
||||
DEBUGASSERT(hostname && hostname[0]);
|
||||
if(data->state.async.doh)
|
||||
Curl_doh_cleanup(data);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue