urlapi: return CURLUE_BAD_HOSTNAME if puny2idn encoding fails#11674
urlapi: return CURLUE_BAD_HOSTNAME if puny2idn encoding fails#11674
Conversation
And document it
|
Alternatives:
|
|
@jacobmealey thoughts? |
|
it looks like note that I'm using |
|
I think maybe it is harder to make up a bad punycode than I considered. I now tested with |
|
we could of course also remove the check for the |
|
Okay, I'm getting the same results with using |
Ack. I'll make sure that it returns CURLUE_BAD_HOSTNAME for bad host names and CURLUE_OUT_OF_MEMORY only when it actually runs out of memory. |
…URLUE_OUT_OF_MEMORY only when it actually runs out of memory
And document it. Only return out of memory when it actually is a memory problem. Pointed-out-by: Jacob Mealey Closes curl#11674
And document it