[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

radmind patch for gcc2



radmind 1.4.0 won't build on systems using gcc 2 without this.

Thanks

--- tls.c.orig	Wed Jan 26 15:20:43 2005
+++ tls.c	Wed Jan 26 15:21:12 2005
@@ -195,6 +195,8 @@
     int             ntype;
     struct in_addr  addr;
 
+    int alt_ext;
+
     if ( inet_aton( host, &addr )) {
 	ntype = IS_IP4;
     } else {
@@ -239,7 +241,7 @@
     /* This code gratiously borrowed from openldap-2.2.17,
      * it allows the use of aliases in the certificate.
      */
-    int alt_ext = X509_get_ext_by_NID( peer, NID_subject_alt_name, -1);
+    alt_ext = X509_get_ext_by_NID( peer, NID_subject_alt_name, -1);
 
     if ( alt_ext >= 0 ) {
 	X509_EXTENSION			*ex;