[tpop3d-discuss] DRAC patch

Kevin Bonner keb at pa.net
Sun, 29 Dec 2002 16:39:18 -0500


Trying to compile tpop3d 1.4.2 with DRAC support gives an 'unknown variab=
le'=20
error.  Below is a patch which corrects the problem.  Enjoy....

Kevin Bonner

diff -urN tpop3d.orig/authswitch.c tpop3d/authswitch.c
--- tpop3d.orig/authswitch.c=09Sun Dec 29 14:33:07 2002
+++ tpop3d/authswitch.c=09Sun Dec 29 17:26:36 2002
@@ -325,7 +325,7 @@
      * -ldrac. */
     if (drac_server) {
         char *errmsg;
-        if (dracauth(drac_server, inet_addr(host), &errmsg))
+        if (dracauth(drac_server, inet_addr(clienthost), &errmsg))
             log_print(LOG_ERR, "authswitch_onlogin: dracauth: %s", errms=
g);
     }
 #endif /* USE_DRAC */