Browse code

Fix #ifdefs for P2MP_SERVER

(Fix check introduced by commit a8be73799be1639, 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>

Arne Schwabe authored on 2013/05/31 06:34:40
Showing 2 changed files
... ...
@@ -2043,7 +2043,7 @@ key_method_2_read (struct buffer *buf, struct tls_multi *multi, struct tls_sessi
2043 2043
   username_status = read_string (buf, up->username, USER_PASS_LEN);
2044 2044
   password_status = read_string (buf, up->password, USER_PASS_LEN);
2045 2045
 
2046
-#ifdef P2MP_SERVER
2046
+#if P2MP_SERVER
2047 2047
   /* get peer info from control channel */
2048 2048
   free (multi->peer_info);
2049 2049
   multi->peer_info = read_string_alloc (buf);
... ...
@@ -485,7 +485,7 @@ struct tls_multi
485 485
   time_t tas_last;
486 486
 #endif
487 487
 
488
-#ifdef P2MP_SERVER
488
+#if P2MP_SERVER
489 489
   /*
490 490
    * A multi-line string of general-purpose info received from peer
491 491
    * over control channel.