SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
26
net/ntopng/patches/patch-src_HTTPserver_cpp
Normal file
26
net/ntopng/patches/patch-src_HTTPserver_cpp
Normal file
|
@ -0,0 +1,26 @@
|
|||
64-bit time_t
|
||||
(yes i know...)
|
||||
|
||||
Index: src/HTTPserver.cpp
|
||||
--- src/HTTPserver.cpp.orig
|
||||
+++ src/HTTPserver.cpp
|
||||
@@ -117,7 +117,7 @@ static void generate_csrf_token(char *csrf) {
|
||||
|
||||
#ifdef __OpenBSD__
|
||||
snprintf(random_a, sizeof(random_a), "%d", arc4random());
|
||||
- snprintf(random_b, sizeof(random_b), "%lu", time(NULL)*arc4random());
|
||||
+ snprintf(random_b, sizeof(random_b), "%llu", time(NULL)*arc4random());
|
||||
#else
|
||||
snprintf(random_a, sizeof(random_a), "%d", rand());
|
||||
snprintf(random_b, sizeof(random_b), "%lu", time(NULL)*rand());
|
||||
@@ -1392,8 +1392,8 @@ bool HTTPserver::check_ssl_cert(char *ssl_cert_path, s
|
||||
int stat_rc;
|
||||
ssl_cert_path[0] = '\0';
|
||||
|
||||
- snprintf(ssl_cert_path, ssl_cert_path_len, "%s/ssl/%s",
|
||||
- docs_dir, CONST_HTTPS_CERT_NAME);
|
||||
+ snprintf(ssl_cert_path, ssl_cert_path_len, "/etc/ssl/%s",
|
||||
+ CONST_HTTPS_CERT_NAME);
|
||||
|
||||
stat_rc = stat(ssl_cert_path, &s);
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue