- dtucker@cvs.openbsd.org 2008/06/12 00:03:49
     [dns.c canohost.c sshconnect.c]
     Do not pass "0" strings as ports to getaddrinfo because the lookups
     can slow things down and we never use the service info anyway. bz
     #859, patch from YOSHIFUJI Hideaki and John Devitofranceschi.  ok
     deraadt@ djm@
     djm belives that the reason for the "0" strings is to ensure that
     it's not possible to call getaddrinfo with both host and port being
     NULL.  In the case of canohost.c host is a local array.  In the
     case of sshconnect.c, it's checked for null immediately before use.
     In dns.c it ultimately comes from ssh.c:main() and is guaranteed to
     be non-null but it's not obvious, so I added a warning message in
     case it is ever passed a null.
3 files changed
tree: d9dde452e7cfedc6d201e976ae98ad1816d7f10b
  1. .cvsignore
  2. CREDITS
  3. ChangeLog
  4. INSTALL
  5. LICENCE
  6. Makefile.in
  7. OVERVIEW
  8. PROTOCOL
  9. README
  10. README.dns
  11. README.platform
  12. README.privsep
  13. README.smartcard
  14. README.tun
  15. RFC.nroff
  16. TODO
  17. WARNING.RNG
  18. aclocal.m4
  19. acss.c
  20. acss.h
  21. addrmatch.c
  22. atomicio.c
  23. atomicio.h
  24. audit-bsm.c
  25. audit.c
  26. audit.h
  27. auth-bsdauth.c
  28. auth-chall.c
  29. auth-krb5.c
  30. auth-options.c
  31. auth-options.h
  32. auth-pam.c
  33. auth-pam.h
  34. auth-passwd.c
  35. auth-rh-rsa.c
  36. auth-rhosts.c
  37. auth-rsa.c
  38. auth-shadow.c
  39. auth-sia.c
  40. auth-sia.h
  41. auth-skey.c
  42. auth.c
  43. auth.h
  44. auth1.c
  45. auth2-chall.c
  46. auth2-gss.c
  47. auth2-hostbased.c
  48. auth2-kbdint.c
  49. auth2-none.c
  50. auth2-passwd.c
  51. auth2-pubkey.c
  52. auth2.c
  53. authfd.c
  54. authfd.h
  55. authfile.c
  56. authfile.h
  57. bufaux.c
  58. bufbn.c
  59. buffer.c
  60. buffer.h
  61. buildpkg.sh.in
  62. canohost.c
  63. canohost.h
  64. channels.c
  65. channels.h
  66. cipher-3des1.c
  67. cipher-acss.c
  68. cipher-aes.c
  69. cipher-bf1.c
  70. cipher-ctr.c
  71. cipher.c
  72. cipher.h
  73. cleanup.c
  74. clientloop.c
  75. clientloop.h
  76. compat.c
  77. compat.h
  78. compress.c
  79. compress.h
  80. config.guess
  81. config.sub
  82. configure.ac
  83. contrib/
  84. crc32.c
  85. crc32.h
  86. deattack.c
  87. deattack.h
  88. defines.h
  89. dh.c
  90. dh.h
  91. dispatch.c
  92. dispatch.h
  93. dns.c
  94. dns.h
  95. entropy.c
  96. entropy.h
  97. fatal.c
  98. fixpaths
  99. fixprogs
  100. groupaccess.c
  101. groupaccess.h
  102. gss-genr.c
  103. gss-serv-krb5.c
  104. gss-serv.c
  105. hostfile.c
  106. hostfile.h
  107. includes.h
  108. install-sh
  109. kex.c
  110. kex.h
  111. kexdh.c
  112. kexdhc.c
  113. kexdhs.c
  114. kexgex.c
  115. kexgexc.c
  116. kexgexs.c
  117. key.c
  118. key.h
  119. log.c
  120. log.h
  121. loginrec.c
  122. loginrec.h
  123. logintest.c
  124. mac.c
  125. mac.h
  126. match.c
  127. match.h
  128. md-sha256.c
  129. md5crypt.c
  130. md5crypt.h
  131. mdoc2man.awk
  132. misc.c
  133. misc.h
  134. mkinstalldirs
  135. moduli
  136. moduli.c
  137. monitor.c
  138. monitor.h
  139. monitor_fdpass.c
  140. monitor_fdpass.h
  141. monitor_mm.c
  142. monitor_mm.h
  143. monitor_wrap.c
  144. monitor_wrap.h
  145. msg.c
  146. msg.h
  147. mux.c
  148. myproposal.h
  149. nchan.c
  150. nchan.ms
  151. nchan2.ms
  152. openbsd-compat/
  153. openssh.xml.in
  154. opensshd.init.in
  155. packet.c
  156. packet.h
  157. pathnames.h
  158. platform.c
  159. platform.h
  160. progressmeter.c
  161. progressmeter.h
  162. readconf.c
  163. readconf.h
  164. readpass.c
  165. regress/
  166. rijndael.c
  167. rijndael.h
  168. rsa.c
  169. rsa.h
  170. scard-opensc.c
  171. scard.c
  172. scard.h
  173. scard/
  174. scp.1
  175. scp.c
  176. servconf.c
  177. servconf.h
  178. serverloop.c
  179. serverloop.h
  180. session.c
  181. session.h
  182. sftp-client.c
  183. sftp-client.h
  184. sftp-common.c
  185. sftp-common.h
  186. sftp-glob.c
  187. sftp-server-main.c
  188. sftp-server.8
  189. sftp-server.c
  190. sftp.1
  191. sftp.c
  192. sftp.h
  193. ssh-add.1
  194. ssh-add.c
  195. ssh-agent.1
  196. ssh-agent.c
  197. ssh-dss.c
  198. ssh-gss.h
  199. ssh-keygen.1
  200. ssh-keygen.c
  201. ssh-keyscan.1
  202. ssh-keyscan.c
  203. ssh-keysign.8
  204. ssh-keysign.c
  205. ssh-rand-helper.8
  206. ssh-rand-helper.c
  207. ssh-rsa.c
  208. ssh.1
  209. ssh.c
  210. ssh.h
  211. ssh1.h
  212. ssh2.h
  213. ssh_config
  214. ssh_config.5
  215. ssh_prng_cmds.in
  216. sshconnect.c
  217. sshconnect.h
  218. sshconnect1.c
  219. sshconnect2.c
  220. sshd.8
  221. sshd.c
  222. sshd_config
  223. sshd_config.5
  224. sshlogin.c
  225. sshlogin.h
  226. sshpty.c
  227. sshpty.h
  228. sshtty.c
  229. survey.sh.in
  230. ttymodes.c
  231. ttymodes.h
  232. uidswap.c
  233. uidswap.h
  234. umac.c
  235. umac.h
  236. uuencode.c
  237. uuencode.h
  238. version.h
  239. xmalloc.c
  240. xmalloc.h