shishi-commit
[Top][All Lists]
Advanced

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

Fix.


From: shishi-commit
Subject: Fix.
Date: Fri, 19 Dec 2003 04:36:38 +0100

Commit from jas 2003-12-19 04:36 CET
Fix.
Module File name Revision
shishi src/server.c 1.27 >>> 1.28
shishi src/shishid.c 1.82 >>> 1.83

shishi/src/server.c   1.27 >>> 1.28
Line 49
  /* Destroy listenspec element and return pointer to element before the
     removed element, or NULL if the first element was removed (or the
     destroyed list element wasn't in the list). */
- struct listenspec *
+ static struct listenspec *
  kdc_close (struct listenspec *ls)
  {
    struct listenspec *tmp;
Line 57
 
    syslog (LOG_INFO, "Closing %s socket %d", ls->str, ls->sockfd);
 
-   if (ls->sockfd)
-     {
-       rc = close (ls->sockfd);
-       if (rc != 0)
- syslog (LOG_ERR, "Close failed to %s on socket %d (%d): %s",
- ls->str, ls->sockfd, rc, strerror (rc));
-     }
-
  #ifdef USE_STARTTLS
    if (ls->usetls)
      {
Line 80
      }
  #endif
 
+   if (ls->sockfd)
+     {
+       rc = close (ls->sockfd);
+       if (rc != 0)
+ syslog (LOG_ERR, "Close failed to %s on socket %d (%d): %s",
+ ls->str, ls->sockfd, rc, strerror (rc));
+     }
+
    if (ls->str)
      free (ls->str);
 
Line 94
  }
 
  /* Send string to peer, via UDP/TCP/TLS, reporting any errors. */
- void
+ static void
  kdc_send1 (struct listenspec *ls)
  {
    ssize_t sent_bytes, read_bytes;

shishi/src/shishid.c   1.82 >>> 1.83
Line 42
 
  /* Listen to all listenspec's, removing entries that fail. */
  static void
- kdc_listen ()
+ kdc_listen (void)
  {
    struct listenspec *ls, **last;
    int maxfd = 0;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]