diff options
Diffstat (limited to 'networking/tcpudp.c')
-rw-r--r-- | networking/tcpudp.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/networking/tcpudp.c b/networking/tcpudp.c index 98a2aa8c0..25b3319ec 100644 --- a/networking/tcpudp.c +++ b/networking/tcpudp.c | |||
@@ -251,14 +251,14 @@ int tcpudpsvd_main(int argc UNUSED_PARAM, char **argv) | |||
251 | if (!cert) cert = "./cert.pem"; | 251 | if (!cert) cert = "./cert.pem"; |
252 | if (!key) key = cert; | 252 | if (!key) key = cert; |
253 | if (matrixSslOpen() < 0) | 253 | if (matrixSslOpen() < 0) |
254 | fatal("cannot initialize ssl"); | 254 | fatal("can't initialize ssl"); |
255 | if (matrixSslReadKeys(&keys, cert, key, 0, ca) < 0) { | 255 | if (matrixSslReadKeys(&keys, cert, key, 0, ca) < 0) { |
256 | if (client) | 256 | if (client) |
257 | fatal("cannot read cert, key, or ca file"); | 257 | fatal("can't read cert, key, or ca file"); |
258 | fatal("cannot read cert or key file"); | 258 | fatal("can't read cert or key file"); |
259 | } | 259 | } |
260 | if (matrixSslNewSession(&ssl, keys, 0, SSL_FLAGS_SERVER) < 0) | 260 | if (matrixSslNewSession(&ssl, keys, 0, SSL_FLAGS_SERVER) < 0) |
261 | fatal("cannot create ssl session"); | 261 | fatal("can't create ssl session"); |
262 | #endif | 262 | #endif |
263 | 263 | ||
264 | sig_block(SIGCHLD); | 264 | sig_block(SIGCHLD); |
@@ -425,7 +425,7 @@ int tcpudpsvd_main(int argc UNUSED_PARAM, char **argv) | |||
425 | if (opts & OPT_h) { | 425 | if (opts & OPT_h) { |
426 | free_me1 = remote_hostname = xmalloc_sockaddr2host_noport(&remote.u.sa); | 426 | free_me1 = remote_hostname = xmalloc_sockaddr2host_noport(&remote.u.sa); |
427 | if (!remote_hostname) { | 427 | if (!remote_hostname) { |
428 | bb_error_msg("cannot look up hostname for %s", remote_addr); | 428 | bb_error_msg("can't look up hostname for %s", remote_addr); |
429 | remote_hostname = remote_addr; | 429 | remote_hostname = remote_addr; |
430 | } | 430 | } |
431 | } | 431 | } |
@@ -441,7 +441,7 @@ int tcpudpsvd_main(int argc UNUSED_PARAM, char **argv) | |||
441 | if (!local_hostname) { | 441 | if (!local_hostname) { |
442 | free_me2 = local_hostname = xmalloc_sockaddr2host_noport(&local.u.sa); | 442 | free_me2 = local_hostname = xmalloc_sockaddr2host_noport(&local.u.sa); |
443 | if (!local_hostname) | 443 | if (!local_hostname) |
444 | bb_error_msg_and_die("cannot look up hostname for %s", local_addr); | 444 | bb_error_msg_and_die("can't look up hostname for %s", local_addr); |
445 | } | 445 | } |
446 | /* else: local_hostname is not NULL, but is NOT malloced! */ | 446 | /* else: local_hostname is not NULL, but is NOT malloced! */ |
447 | } | 447 | } |