Github user SolidWallOfCode commented on a diff in the pull request: https://github.com/apache/trafficserver/pull/653#discussion_r65899492 --- Diff: lib/ts/ink_res_init.cc --- @@ -503,7 +503,20 @@ ink_res_init(ink_res_state statp, ///< State object to update. hints.ai_family = PF_UNSPEC; hints.ai_socktype = SOCK_DGRAM; /*dummy*/ hints.ai_flags = AI_NUMERICHOST; - sprintf(sbuf, "%d", NAMESERVER_PORT); + --- End diff -- You should use `ats_ip_parse` here. It was made specifically to handle this kind of task.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---