Skip to content

Commit

Permalink
vty: fix off by one vty allocation
Browse files Browse the repository at this point in the history
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
  • Loading branch information
fabbione committed Oct 28, 2010
1 parent f0d25d7 commit 99490db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vty.c
Expand Up @@ -22,7 +22,7 @@ STATIC pthread_mutex_t knet_vty_mutex = PTHREAD_MUTEX_INITIALIZER;
STATIC int vty_max_connections = KNET_VTY_DEFAULT_MAX_CONN;
STATIC int vty_current_connections = 0;

STATIC struct knet_vty knet_vtys[KNET_VTY_TOTAL_MAX_CONN];
STATIC struct knet_vty knet_vtys[KNET_VTY_TOTAL_MAX_CONN+1];

STATIC int daemon_quit = 0;

Expand Down

0 comments on commit 99490db

Please sign in to comment.