}
if (cbd->stage == map_load_file) {
- msg->url = rspamd_fstring_new_init (cbd->data->path, strlen (cbd->data->path));
+ msg->url = rspamd_fstring_append (msg->url,
+ cbd->data->path, strlen (cbd->data->path));
if (cbd->check &&
cbd->data->last_checked != 0 && cbd->stage == map_load_file) {
}
}
else if (cbd->stage == map_load_pubkey) {
- msg->url = rspamd_fstring_new_init (cbd->data->path, strlen (cbd->data->path));
+ msg->url = rspamd_fstring_append (msg->url,
+ cbd->data->path, strlen (cbd->data->path));
msg->url = rspamd_fstring_append (msg->url, ".pub", 4);
}
else if (cbd->stage == map_load_signature) {
- msg->url = rspamd_fstring_new_init (cbd->data->path, strlen (cbd->data->path));
+ msg->url = rspamd_fstring_append (msg->url,
+ cbd->data->path, strlen (cbd->data->path));
msg->url = rspamd_fstring_append (msg->url, ".sig", 4);
}
else {
#include "config.h"
#include "libutil/util.h"
+#include "libutil/logger.h"
#include "ssl_util.h"
#include <openssl/ssl.h>
c->handler (fd, EV_WRITE, c->handler_data);
}
else {
- g_assert (0);
+ return;
}
}
else {
rspamd_ssl_connection_free (struct rspamd_ssl_connection *conn)
{
if (conn) {
+ SSL_shutdown (conn->ssl);
SSL_free (conn->ssl);
if (conn->hostname) {