[server] bug fix in --disable-file-cache mode
Applied patch from Vlad Glagolev to fix ndbm/gdbm usage when --disable-file-cache is used for the autoconf configure script. This functionality was broken in be4193d734850fe60f14a26b547525ea0b9ce1e9 through improper handling of #define macros from --disable-file-cache.
This commit is contained in:
parent
7bd0da29c4
commit
591416e23b
6
CREDITS
6
CREDITS
@ -66,3 +66,9 @@ Fernando Arnaboldi (IOActive)
|
||||
- Found several conditions in which the server did not properly throw out
|
||||
maliciously constructed variables in the access.conf file. This has been
|
||||
fixed along with new fuzzing tests in the test suite.
|
||||
|
||||
Vlad Glagolev
|
||||
- Submitted a patch to fix ndbm/gdbm usage when --disable-file-cache is
|
||||
used for the autoconf configure script. This functionality was broken in
|
||||
be4193d734850fe60f14a26b547525ea0b9ce1e9 through improper handling of
|
||||
#define macros from --disable-file-cache.
|
||||
|
||||
@ -1,3 +1,9 @@
|
||||
fwknop-2.0.4 (09/20/2012):
|
||||
- [server] (Vlad Glagolev) Submitted a patch to fix ndbm/gdbm usage when
|
||||
--disable-file-cache is used for the autoconf configure script. This
|
||||
functionality was broken in be4193d734850fe60f14a26b547525ea0b9ce1e9
|
||||
through improper handling of #define macros from --disable-file-cache.
|
||||
|
||||
fwknop-2.0.3 (09/03/2012):
|
||||
- [server] Fernando Arnaboldi from IOActive found several DoS/code
|
||||
execution vulnerabilities for malicious fwknop clients that manage to
|
||||
|
||||
@ -138,7 +138,6 @@ replay_warning(fko_srv_options_t *opts, digest_cache_info_t *digest_info)
|
||||
char created[DATE_LEN];
|
||||
|
||||
#if ! USE_FILE_CACHE
|
||||
char last_ip[INET_ADDRSTRLEN+1] = {0};
|
||||
char first[DATE_LEN], last[DATE_LEN];
|
||||
#endif
|
||||
|
||||
@ -375,9 +374,10 @@ replay_db_cache_init(fko_srv_options_t *opts)
|
||||
GDBM_FILE rpdb;
|
||||
#elif HAVE_LIBNDBM
|
||||
DBM *rpdb;
|
||||
datum db_ent;
|
||||
#endif
|
||||
|
||||
datum db_key, db_ent, db_next_key;
|
||||
datum db_key, db_next_key;
|
||||
int db_count = 0;
|
||||
|
||||
#ifdef HAVE_LIBGDBM
|
||||
@ -565,11 +565,8 @@ is_replay_dbm_cache(fko_srv_options_t *opts, char *digest)
|
||||
#endif
|
||||
datum db_key, db_ent;
|
||||
|
||||
char *digest = NULL;
|
||||
int digest_len, res = SPA_MSG_SUCCESS;
|
||||
|
||||
digest_cache_info_t dc_info;
|
||||
|
||||
digest_len = strlen(digest);
|
||||
|
||||
db_key.dptr = digest;
|
||||
@ -638,7 +635,6 @@ add_replay_dbm_cache(fko_srv_options_t *opts, char *digest)
|
||||
#endif
|
||||
datum db_key, db_ent;
|
||||
|
||||
char *digest = NULL;
|
||||
int digest_len, res = SPA_MSG_SUCCESS;
|
||||
|
||||
digest_cache_info_t dc_info;
|
||||
@ -705,7 +701,7 @@ add_replay_dbm_cache(fko_srv_options_t *opts, char *digest)
|
||||
|
||||
return(res);
|
||||
#endif /* NO_DIGEST_CACHE */
|
||||
|
||||
}
|
||||
#endif /* USE_FILE_CACHE */
|
||||
|
||||
#if USE_FILE_CACHE
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user