mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Back out my stupid braino; I was thinking strlen and not sizeof.
This commit is contained in:
parent
af00f8007c
commit
df5c0b8a7a
3 changed files with 6 additions and 6 deletions
|
|
@ -31,7 +31,7 @@
|
|||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)tcp_input.c 8.12 (Berkeley) 5/24/95
|
||||
* $Id: tcp_input.c,v 1.44 1996/04/27 18:19:10 ache Exp $
|
||||
* $Id: tcp_input.c,v 1.45 1996/05/02 05:31:12 fenner 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.44 1996/04/27 18:19:10 ache Exp $
|
||||
* $Id: tcp_input.c,v 1.45 1996/05/02 05:31:12 fenner 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.23 1996/04/27 18:19:12 ache Exp $
|
||||
* $Id: udp_usrreq.c,v 1.24 1996/05/02 05:31:13 fenner 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 a new issue