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