server/admin.c: Note that it's safe to call `a_create' before `a_init'.
[tripe] / server / admin.c
index 24f8397..e530620 100644 (file)
@@ -1879,7 +1879,7 @@ static void acmd_port(admin *a, unsigned ac, char *av[])
       if (udpsock[i].sf.fd >= 0) goto found;
     abort();
   }
-  a_info(a, "%u", p_port(i), A_END);
+  a_info(a, "%u", udpsock[i].port, A_END);
   a_ok(a);
 }
 
@@ -2404,7 +2404,8 @@ static void a_line(char *p, size_t len, void *vp)
  *
  * Returns:    ---
  *
- * Use:                Creates a new admin connection.
+ * Use:                Creates a new admin connection.  It's safe to call this
+ *             before @a_init@.
  */
 
 void a_create(int fd_in, int fd_out, unsigned f)