summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bio/b_sock.c
diff options
context:
space:
mode:
authorguenther <>2014-04-19 11:46:39 +0000
committerguenther <>2014-04-19 11:46:39 +0000
commitf376030ff7fe24f4ad44a56c2d8ba8796c9ab3f0 (patch)
tree1c4f9b095801061d57e575e80f245cef8a59a27f /src/lib/libcrypto/bio/b_sock.c
parent597610ccf04bbca4e88fac7988877d0a06e02211 (diff)
downloadopenbsd-f376030ff7fe24f4ad44a56c2d8ba8796c9ab3f0.tar.gz
openbsd-f376030ff7fe24f4ad44a56c2d8ba8796c9ab3f0.tar.bz2
openbsd-f376030ff7fe24f4ad44a56c2d8ba8796c9ab3f0.zip
We'll interpret a (void) cast on snprintf() to mean it's been verified that
truncation is either desirable, not an issue, or is detected and handled later ok deraadt@
Diffstat (limited to 'src/lib/libcrypto/bio/b_sock.c')
-rw-r--r--src/lib/libcrypto/bio/b_sock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/bio/b_sock.c b/src/lib/libcrypto/bio/b_sock.c
index a82c79a1b0..a6dd43f397 100644
--- a/src/lib/libcrypto/bio/b_sock.c
+++ b/src/lib/libcrypto/bio/b_sock.c
@@ -543,7 +543,7 @@ BIO_accept(int sock, char **addr)
543 goto end; 543 goto end;
544 } 544 }
545 *addr = p; 545 *addr = p;
546 (void) snprintf(*addr, nl, "%s:%s", h, s); 546 snprintf(*addr, nl, "%s:%s", h, s);
547 goto end; 547 goto end;
548 } while (0); 548 } while (0);
549#endif 549#endif
@@ -558,7 +558,7 @@ BIO_accept(int sock, char **addr)
558 } 558 }
559 *addr = p; 559 *addr = p;
560 } 560 }
561 (void) snprintf(*addr, 24, "%d.%d.%d.%d:%d", 561 snprintf(*addr, 24, "%d.%d.%d.%d:%d",
562 (unsigned char)(l >> 24L) & 0xff, (unsigned char)(l >> 16L) & 0xff, 562 (unsigned char)(l >> 24L) & 0xff, (unsigned char)(l >> 16L) & 0xff,
563 (unsigned char)(l >> 8L) & 0xff, (unsigned char)(l) & 0xff, port); 563 (unsigned char)(l >> 8L) & 0xff, (unsigned char)(l) & 0xff, port);
564 564