Displaying 8 results from an estimated 8 matches for "str_free".
Did you mean:
pte_free
2014 Dec 12
0
PATCH - add username_format to the PAM auth module
...t not ever
get here because PAM already knows the user. */
- string = strdup(ctx->request->user);
+ string = strdup(str_c(username));
if (string == NULL)
i_fatal_status(FATAL_OUTOFMEM, "Out of memory");
break;
@@ -108,12 +116,14 @@
}
free(resp);
+ str_free(&username);
return PAM_CONV_ERR;
}
resp[i].resp_retcode = PAM_SUCCESS;
resp[i].resp = string;
}
+ str_free(&username);
*resp_r = resp;
return PAM_SUCCESS;
@@ -231,7 +241,10 @@
pam_strerror(pamh, status));
return status;
}
- auth_request_set_field(requ...
2005 Jan 14
0
base dn and filter strings are concatenated
...t it print
junks.
regards,
--
Kazuo Moriwaka <moriwaka at valinux.co.jp>
Index: src/auth/passdb-ldap.c
===================================================================
RCS file: /home/cvs/dovecot/src/auth/passdb-ldap.c,v
retrieving revision 1.21
diff -r1.21 passdb-ldap.c
161a162
> str_free(str);
162a164
> str = t_str_new(512);
172c174
< conn->set.base, conn->set.scope, filter,
---
> base, conn->set.scope, filter,
Index: src/auth/userdb-ldap.c
===================================================================
RCS file: /home/cvs/dovecot/src/auth...
2010 Jun 14
1
Patch to fix leak in imap_refresh_proctitle in beta[5, 6]
...ng_t *title = t_str_new(128);
+ string_t *title;
if (!verbose_proctitle)
return;
+ title = str_new(default_pool, 128);
str_append_c(title, '[');
switch (imap_client_count) {
case 0:
@@ -72,6 +73,7 @@
}
str_append_c(title, ']');
process_title_set(str_c(title));
+ str_free(&title);
}
static void client_kill_idle(struct client *client)
And perhaps there should be a warning when data is allocated out of the primordial data stack (as opposed to a nested one)?
2019 Apr 14
0
[PATCH] Re: Solr connection timeout hardwired to 60s
...rue\" waitSearcher=\"%s\"/>",
ctx->documents_added ? "true" : "false");
- if (solr_connection_post(backend->solr_conn, str) < 0)
- ret = -1;
+ if (solr_connection_post(backend->solr_conn, str) < 0)
+ ret = -1;
+ }
}
str_free(&ctx->cmd);
@@ -494,10 +496,13 @@
{
struct solr_fts_backend *backend =
(struct solr_fts_backend *)ctx->ctx.backend;
-
- if (ctx->mails_since_flush++ >= SOLR_MAIL_FLUSH_INTERVAL) {
+ struct fts_backend *_backend =
+ (struct solr_fts_backend *)ctx->ctx.backend;
+ struct fts_...
2008 Nov 07
6
Cannot get the libwrap patch work
Hello there,
I have been trying to make the patch work for libwrap(TCP
Wrappers) posted on http://dovecot.org/patches
<http://dovecot.org/patches%20Patch%20of%201.1> Patch of 1.1 but could not
get it work. Any help will be highly appreciated. After compiling and
running it I get error "Error: login_tcp_wrappers can't be used because
Dovecot wasn't built with
2008 Nov 08
1
dovecot Digest, Vol 67, Issue 19
...RQ_FILE, fd,
+ RQ_CLIENT_ADDR, net_ip2addr(ip),
+ RQ_DAEMON, daemon,
+ 0);
+ fromhost(&req);
+
+ if (!hosts_access(&req)) {
+ i_error("Connection refused by tcp-wrappers: %s",
+ net_ip2addr(ip));
+ refuse(&req);
+ i_unreached();
+ }
+ if (ssl) {
+ str_free(&process_name_ssl);
+ }
+#endif
+}
+
static void login_accept(void *context)
{
int listen_fd = POINTER_CAST_TO(context, int);
@@ -89,6 +136,7 @@
i_error("accept() failed: %m");
return;
}
+ access_check(fd, &remote_ip, FALSE);
if (net_getsockname(fd, &local_ip,...
2019 Apr 13
3
Solr connection timeout hardwired to 60s
On 4/13/2019 4:29 AM, John Fawcett via dovecot wrote:
> If this value was made configurable people could set it to what they
> want. However the underlying problem is likely on solr configuration.
The Jetty that is included in Solr has its idle timeout set to 50
seconds. But in practice, I have not seen this timeout trigger ... and
if the OP is seeing a 60 second timeout, then the 50
2010 Apr 09
4
Patch: support URLAUTH, BURL, CATENATE
...lose of CATENATE list
+ ctx->cmd->client->input_skip_line = TRUE;
+ }
+ }
+
+ if (ctx->cat.output != NULL)
+ o_stream_unref(&ctx->cat.output);
+ if (ctx->cat.literal_input != NULL)
+ i_stream_unref(&ctx->cat.literal_input);
+ if (ctx->cat.literal_url != NULL)
+ str_free(&ctx->cat.literal_url);
+ if (ctx->input != NULL)
+ i_stream_unref(&ctx->input);
+ ctx->cat.parts = 0;
+
+ if (ctx->msg_size == 0 || ctx->count == 0) {
+ if (!ctx->failed)
+ client_send_tagline(ctx->cmd,
+ "NO Can't save a zero byte message.");...