mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 23:28:57 +00:00
Size temp var correctly; buf[4*sizeof "123"] is not long enough
to store "192.252.119.189\0".
This commit is contained in:
parent
a251b9e77e
commit
af00f8007c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=15524
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)tcp_input.c 8.12 (Berkeley) 5/24/95
|
||||
* $Id: tcp_input.c,v 1.43 1996/04/26 18:32:57 wollman Exp $
|
||||
* $Id: tcp_input.c,v 1.44 1996/04/27 18:19:10 ache Exp $
|
||||
*/
|
||||
|
||||
#ifndef TUBA_INCLUDE
|
||||
@ -378,7 +378,7 @@ findpcb:
|
||||
*/
|
||||
if (inp == NULL) {
|
||||
if (log_in_vain && tiflags & TH_SYN) {
|
||||
char buf[4*sizeof "123"];
|
||||
char buf[4*sizeof "123."];
|
||||
|
||||
strcpy(buf, inet_ntoa(ti->ti_dst));
|
||||
log(LOG_INFO, "Connection attempt to TCP %s:%d"
|
||||
|
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)tcp_input.c 8.12 (Berkeley) 5/24/95
|
||||
* $Id: tcp_input.c,v 1.43 1996/04/26 18:32:57 wollman Exp $
|
||||
* $Id: tcp_input.c,v 1.44 1996/04/27 18:19:10 ache Exp $
|
||||
*/
|
||||
|
||||
#ifndef TUBA_INCLUDE
|
||||
@ -378,7 +378,7 @@ findpcb:
|
||||
*/
|
||||
if (inp == NULL) {
|
||||
if (log_in_vain && tiflags & TH_SYN) {
|
||||
char buf[4*sizeof "123"];
|
||||
char buf[4*sizeof "123."];
|
||||
|
||||
strcpy(buf, inet_ntoa(ti->ti_dst));
|
||||
log(LOG_INFO, "Connection attempt to TCP %s:%d"
|
||||
|
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)udp_usrreq.c 8.6 (Berkeley) 5/23/95
|
||||
* $Id: udp_usrreq.c,v 1.22 1996/04/09 07:01:53 pst Exp $
|
||||
* $Id: udp_usrreq.c,v 1.23 1996/04/27 18:19:12 ache Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -280,7 +280,7 @@ udp_input(m, iphlen)
|
||||
}
|
||||
if (inp == NULL) {
|
||||
if (log_in_vain) {
|
||||
char buf[4*sizeof "123"];
|
||||
char buf[4*sizeof "123."];
|
||||
|
||||
strcpy(buf, inet_ntoa(ip->ip_dst));
|
||||
log(LOG_INFO, "Connection attempt to UDP %s:%d"
|
||||
|
Loading…
Reference in New Issue
Block a user