mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-16 23:57:54 +01:00
Correct a conditional which could cause a off-by-one error in certain
circumstances.
This commit is contained in:
parent
0e8441fc1a
commit
3890483652
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=8604
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: tcpip.c,v 1.6 1995/05/18 09:02:06 jkh Exp $
|
||||
* $Id: tcpip.c,v 1.7 1995/05/18 13:18:35 jkh Exp $
|
||||
*
|
||||
* Copyright (c) 1995
|
||||
* Gary J Palmer. All rights reserved.
|
||||
@ -383,7 +383,7 @@ tcpOpenDialog(char *str)
|
||||
if (n == LAYOUT_EXTRAS) {
|
||||
n = LAYOUT_IFACE;
|
||||
obj = (((first->next)->next)->next)->next;
|
||||
} else if (obj->next != NULL) {
|
||||
} else if (n < max) {
|
||||
++n;
|
||||
} else {
|
||||
n = 0;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: tcpip.c,v 1.6 1995/05/18 09:02:06 jkh Exp $
|
||||
* $Id: tcpip.c,v 1.7 1995/05/18 13:18:35 jkh Exp $
|
||||
*
|
||||
* Copyright (c) 1995
|
||||
* Gary J Palmer. All rights reserved.
|
||||
@ -383,7 +383,7 @@ tcpOpenDialog(char *str)
|
||||
if (n == LAYOUT_EXTRAS) {
|
||||
n = LAYOUT_IFACE;
|
||||
obj = (((first->next)->next)->next)->next;
|
||||
} else if (obj->next != NULL) {
|
||||
} else if (n < max) {
|
||||
++n;
|
||||
} else {
|
||||
n = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user