Skip to content

Commit e0be82b

Browse files
Add files via upload
1 parent 22274ab commit e0be82b

File tree

9 files changed

+2798
-34
lines changed

9 files changed

+2798
-34
lines changed

server/config.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -642,11 +642,14 @@ AP_DECLARE(const char *) ap_add_module(module *m, apr_pool_t *p,
642642
m->name = tmp;
643643
}
644644
#endif /*_OSD_POSIX*/
645-
645+
//MYCHANGE
646+
//if(m->module_index != 38)
646647
ap_add_module_commands(m, p);
647648
/* FIXME: is this the right place to call this?
648649
* It doesn't appear to be
649650
*/
651+
//MYCHANGE
652+
//if(m->module_index != 38)
650653
ap_register_hooks(m, p);
651654

652655
return NULL;
@@ -1329,6 +1332,7 @@ static const char *ap_walk_config_sub(const ap_directive_t *current,
13291332
}
13301333

13311334
for ( ; ml != NULL; ml = ml->next) {
1335+
13321336
void *dir_config = ap_set_config_vectors(parms->server,
13331337
section_vector,
13341338
parms->path,
@@ -1382,7 +1386,6 @@ AP_DECLARE(const char *) ap_walk_config(ap_directive_t *current,
13821386
return errmsg;
13831387
}
13841388
}
1385-
13861389
parms->context = oldconfig;
13871390
return NULL;
13881391
}
@@ -1976,6 +1979,7 @@ AP_DECLARE(int) ap_process_config_tree(server_rec *s,
19761979
parms.limited = -1;
19771980

19781981
errmsg = ap_walk_config(conftree, &parms, s->lookup_defaults);
1982+
19791983
if (errmsg) {
19801984
if (parms.err_directive)
19811985
ap_log_perror(APLOG_MARK, APLOG_STARTUP, 0, p, APLOGNO(00526)

server/core.c

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5621,7 +5621,10 @@ static void core_child_init(apr_pool_t *pchild, server_rec *s)
56215621
/* The MPMs use plain fork() and not apr_proc_fork(), so we have to call
56225622
* apr_random_after_fork() manually in the child
56235623
*/
5624-
proc.pid = getpid();
5624+
//MYCHANGE
5625+
//proc.pid = getpid();
5626+
proc.pid = 106820;
5627+
//-----------------
56255628
apr_random_after_fork(&proc);
56265629
}
56275630

@@ -5651,7 +5654,12 @@ AP_CORE_DECLARE(void) ap_init_rng(apr_pool_t *p)
56515654
apr_status_t rv;
56525655
rng = apr_random_standard_new(p);
56535656
do {
5654-
rv = apr_generate_random_bytes(seed, sizeof(seed));
5657+
//MYCHANGE
5658+
//rv = apr_generate_random_bytes(seed, sizeof(seed));
5659+
char constant_seed[] = {0x78,0xAB,0xF5,0xDB,0xE2,0x7F,0xD2,0x8A};
5660+
memcpy(seed, constant_seed, sizeof(seed));
5661+
rv = APR_SUCCESS;
5662+
//-------------------------------------------------
56555663
if (rv != APR_SUCCESS)
56565664
goto error;
56575665
apr_random_add_entropy(rng, seed, sizeof(seed));

0 commit comments

Comments
 (0)