diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2012-03-01 16:45:38 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2012-03-01 16:45:38 +0400 |
commit | 7dcf9f9bade26ca02b8706a2e4cb2066f6ba7b00 (patch) | |
tree | f69121ee5c1a0e43fe987db8ed2c9e5cc66c79f0 /src/kvstorage_file.c | |
parent | c93cca709b13da41b8d5bcd08874d75669e125f0 (diff) | |
download | rspamd-7dcf9f9bade26ca02b8706a2e4cb2066f6ba7b00.tar.gz rspamd-7dcf9f9bade26ca02b8706a2e4cb2066f6ba7b00.zip |
Use DB_HASH access method for bdb backend.
Fix signed and unsigned comparasion while I'm here.
Diffstat (limited to 'src/kvstorage_file.c')
-rw-r--r-- | src/kvstorage_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kvstorage_file.c b/src/kvstorage_file.c index de06f778b..2857e680b 100644 --- a/src/kvstorage_file.c +++ b/src/kvstorage_file.c @@ -89,7 +89,7 @@ get_file_name (struct rspamd_file_backend *db, gchar *key, guint keylen, gchar * } /* Now we have directory, append base64 encoded filename */ k = key; - if (end - p < keylen * 2 + 1) { + if (end - p < (gint)keylen * 2 + 1) { /* Filebuf is not large enough */ return FALSE; } |