projects
/
paraslash.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix an off-by-one bug.
[paraslash.git]
/
http_send.c
diff --git
a/http_send.c
b/http_send.c
index 3f03f00b41a943af347c2e5599fde1ff9a3e507d..7035f27968f8f90a7d2ce89a3cb77e98130ac632 100644
(file)
--- a/
http_send.c
+++ b/
http_send.c
@@
-10,17
+10,18
@@
#include <dirent.h>
#include "para.h"
#include <dirent.h>
#include "para.h"
+#include "error.h"
+#include "string.h"
#include "server.cmdline.h"
#include "afh.h"
#include "server.cmdline.h"
#include "afh.h"
+#include "afs.h"
#include "server.h"
#include "http.h"
#include "vss.h"
#include "send.h"
#include "list.h"
#include "close_on_fork.h"
#include "server.h"
#include "http.h"
#include "vss.h"
#include "send.h"
#include "list.h"
#include "close_on_fork.h"
-#include "error.h"
#include "net.h"
#include "net.h"
-#include "string.h"
#include "fd.h"
#include "chunk_queue.h"
#include "fd.h"
#include "chunk_queue.h"
@@
-464,7
+465,7
@@
static void init_access_control_list(void)
if (!p)
goto err;
*p = '\0';
if (!p)
goto err;
*p = '\0';
- if (!inet_
aton(
arg, &scd.addr))
+ if (!inet_
pton(AF_INET,
arg, &scd.addr))
goto err;
scd.netmask = atoi(++p);
if (scd.netmask < 0 || scd.netmask > 32)
goto err;
scd.netmask = atoi(++p);
if (scd.netmask < 0 || scd.netmask > 32)