Incopatible protocol fix! Include message type code under MAC tag to prevent
[tripe] / client.c
index 696e9c7..1014d24 100644 (file)
--- a/client.c
+++ b/client.c
@@ -1,6 +1,6 @@
 /* -*-c-*-
  *
- * $Id: client.c,v 1.10 2003/05/17 10:59:19 mdw Exp $
+ * $Id: client.c,v 1.11 2003/07/13 11:19:49 mdw Exp $
  *
  * Client for TrIPE
  *
 /*----- Revision history --------------------------------------------------* 
  *
  * $Log: client.c,v $
+ * Revision 1.11  2003/07/13 11:19:49  mdw
+ * Incopatible protocol fix!  Include message type code under MAC tag to prevent
+ * cut-and-paste from key-exchange messages to general packet transport.
+ *
  * Revision 1.10  2003/05/17 10:59:19  mdw
  * Put a newline in the pidfile.
  *
@@ -440,6 +444,8 @@ int main(int argc, char *argv[])
       close(pfd[0]);
       if (logfp)
        fclose(logfp);
+      if (pidfp)
+       fclose(pidfp);
       closelog();
       if (f & f_daemon)
        u_detach();