Fix #ifdefs for P2MP_SERVER

(Fix check introduced by commit a8be73799b, testing with #ifdef
instead of #if - P2MP_SERVER is always defined, and can be "0" or "1")

Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <1369949680-9499-1-git-send-email-arne@rfc2549.org>
URL: http://article.gmane.org/gmane.network.openvpn.devel/7637

Signed-off-by: Gert Doering <gert@greenie.muc.de>
This commit is contained in:
Arne Schwabe 2013-05-30 23:34:40 +02:00 committed by Gert Doering
parent 3600996534
commit 1eb9a12710
2 changed files with 2 additions and 2 deletions

View file

@ -2043,7 +2043,7 @@ key_method_2_read (struct buffer *buf, struct tls_multi *multi, struct tls_sessi
username_status = read_string (buf, up->username, USER_PASS_LEN);
password_status = read_string (buf, up->password, USER_PASS_LEN);
#ifdef P2MP_SERVER
#if P2MP_SERVER
/* get peer info from control channel */
free (multi->peer_info);
multi->peer_info = read_string_alloc (buf);

View file

@ -485,7 +485,7 @@ struct tls_multi
time_t tas_last;
#endif
#ifdef P2MP_SERVER
#if P2MP_SERVER
/*
* A multi-line string of general-purpose info received from peer
* over control channel.