#1162: Slowdown due to gethostbyname ---------------------+------------------------------------------------------ Reporter: hinder | Owner: Type: defect | Status: reviewed_ok Priority: minor | Milestone: Component: Cactus | Version: Resolution: | Keywords: ---------------------+------------------------------------------------------
Comment (by eschnett):
No, we can't use the "length" variable passed in, because the first call may pass length=1, and the next may pass length=100. A typical operating system length limit may be 64.
Also, static variable probably cannot be VLAs.
Yes, there is no such logic, but there was no such logic there before either. The patch doesn't add error checking.