search for: buffer_free

Displaying 20 results from an estimated 96 matches for "buffer_free".

2010 Aug 06
2
dovecot-auth process crashed during pam login
Hello! We experienced crashes of the dovecot-auth process during user verification with pam_ssh. After a little debugging I saw that pam_ssh and dovecot both provide a buffer_free() function. During cleanup of pam_ssh the buffer_free() from dovecot was called. The members of the buffer had all "out of bound" addresses. After rename the buffer_free() in dovecot the pam login works fine. Cheer, Elmar -------------- next part -------------- An embedded and charset...
2008 Jun 19
5
Portforwarding using the control master.
Hi all, currently I am considering writing a patch for OpenSSH that will allow portforwarding using the control_master unix domain socket. The idea is to introduce an extra SSHMUX command, SSHMUX_COMMAND_SOCKS, which will then pass control to the normal socks functions used for dynamic forwarding. The main reason for me to write this patch are: - some more control over who gets to connect to
2011 Jan 13
2
[PATCH] mux: update PROTOCOL.mux and fix error messages on client side
...MUX_S_PERMISSION_DENIED 0x80000002 #define MUX_S_FAILURE 0x80000003 diff --git a/mux.c b/mux.c index f1f7e6b..9b3633b 100644 --- a/mux.c +++ b/mux.c @@ -1530,7 +1530,7 @@ mux_client_request_forward(int fd, u_int ftype, Forward *fwd) case MUX_S_FAILURE: e = buffer_get_string(&m, NULL); buffer_free(&m); - error("%s: session request failed: %s", __func__, e); + error("%s: forwarding request failed: %s", __func__, e); return -1; default: fatal("%s: unexpected response from master 0x%08x", @@ -1649,12 +1649,12 @@ mux_client_request_session(int fd) ca...
2003 Sep 17
1
[Bug 660] buffer_free should reset buffer->alloc
http://bugzilla.mindrot.org/show_bug.cgi?id=660 Summary: buffer_free should reset buffer->alloc Product: Portable OpenSSH Version: -current Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P2 Component: Miscellaneous AssignedTo: openssh-bugs at mindro...
2008 Sep 15
0
No subject
...tions sshd version OpenSSH_3.7.1p2 before lodaing private keys ?after lodaing private keys ?after lodaing private keys options.host_key_files[i]=/etc/ssh/ssh_host_rsa_key ?in key_load_private ?before key_load_public_rsa1 in buffer_init in buffer_append_space in buffer_get leaving from buffer_get in buffer_free ?before key_load_private_pem ?returning from key_load_private ?after key_load_private private host key: #0 type 1 RSA options.host_key_files[i]=/etc/ssh/ssh_host_dsa_key ?in key_load_private ?before key_load_public_rsa1 in buffer_init in buffer_append_space in buffer_get leaving from buffer_get in...
2010 Jan 14
1
ssh(1) multiplexing rewrite
...nnel_close_fd(&c->rfd); channel_close_fd(&c->wfd); channel_close_fd(&c->efd); @@ -395,8 +396,6 @@ channel_free(Channel *c) if (c->sock != -1) shutdown(c->sock, SHUT_RDWR); - if (c->ctl_fd != -1) - shutdown(c->ctl_fd, SHUT_RDWR); channel_close_fds(c); buffer_free(&c->input); buffer_free(&c->output); @@ -518,6 +517,7 @@ channel_still_open(void) case SSH_CHANNEL_X11_LISTENER: case SSH_CHANNEL_PORT_LISTENER: case SSH_CHANNEL_RPORT_LISTENER: + case SSH_CHANNEL_MUX_LISTENER: case SSH_CHANNEL_CLOSED: case SSH_CHANNEL_AUTH_SOCKET:...
2008 Sep 18
2
SSHD_PROBLEM
...tions sshd version OpenSSH_3.7.1p2 before lodaing private keys after lodaing private keys after lodaing private keys options.host_key_files[i]=/etc/ssh/ssh_host_rsa_key in key_load_private before key_load_public_rsa1 in buffer_init in buffer_append_space in buffer_get leaving from buffer_get in buffer_free before key_load_private_pem returning from key_load_private after key_load_private private host key: #0 type 1 RSA options.host_key_files[i]=/etc/ssh/ssh_host_dsa_key in key_load_private before key_load_public_rsa1 in buffer_init in buffer_append_space in buffer_get leaving from buffer_get in...
2000 Apr 29
1
BUG: ssh-agent memory leak
Hey all! I've been using OpenSSH on Linux since version 1.2.2; great work... There is, however, a pretty noticable memory leak in ssh-agent. I use ssh-agent to provide RSA authorization to automatically open an ssh connection to download POP mail every three minutes. When I was using the standard ssh-agent from 1.2.27 (not OpenSSH), I could leave ssh-agent running for the entire uptime of
2001 Oct 07
0
trivial grammatical patch
...+++ authfile.c Sat Oct 6 19:53:11 2001 @@ -250,7 +250,7 @@ /* Check that it is at least big enough to contain the ID string. */ if (len < sizeof(authfile_id_string)) { - debug3("No RSA1 key file %.200s.", filename); + debug3("Not RSA1 key file %.200s.", filename); buffer_free(&buffer); return NULL; } @@ -260,7 +260,7 @@ */ for (i = 0; i < sizeof(authfile_id_string); i++) if (buffer_get_char(&buffer) != authfile_id_string[i]) { - debug3("No RSA1 key file %.200s.", filename); + debug3("Not RSA1 key file %.200s.", filename);...
2018 Dec 06
0
Dovecot 2.3.4 crashing on Solaris 10 - "Panic: output stream is missing error handling"
...libdovecot" /export/dovecot/bin/doveconf -n service pop3-login { inet_listener pop3 { port = 1110 } } submission_max_mail_size = 0 /1: write(1, " s e r v i c e p o p 3".., 95) = 95 /1 at 1: <- libdovecot:o_stream_uncork() = 0xa1918 /1 at 1: -> libdovecot:buffer_free(0xa1a10, 0x0, 0x0, 0x0) /1 at 1: -> libdovecot:pool_system_free(0xff0fb050, 0x4af10, 0xff0fb030, 0xff059470) /1 at 1: <- libdovecot:buffer_free() = 0 /1 at 1: -> libdovecot:buffer_free(0xa1a18, 0x1c00, 0xfec47940, 0x0) /1 at 1: -> libdovecot:pool_system_free(0xff0fb050, 0x4af60,...
2009 Feb 12
2
[patch 1/3] add protocol extension to ATTR message
...ring_ptr(b, &datalen); debug3("Got file attribute \"%s\"", type); + if (strcmp(type, "extattr at openssh.com") == 0) { + Buffer ext; + + buffer_init(&ext); + buffer_append(&ext, data, datalen); + decode_extra_attrib(&ext, &a); + buffer_free(&ext); + } xfree(type); - xfree(data); } } return &a; } +static void +encode_extra_attrib(Buffer *b, const Attrib *a) +{ + buffer_put_int(b, a->ext_flags); + if (a->ext_flags & SSH2_FXE_EXTATTR_DEV) + buffer_put_int64(b, a->dev); + if (a->ext_flags & S...
2003 Oct 30
2
sftp client reget reput
...loc(conn->transfer_buflen); /* Read from local and write to remote */ +#ifdef REGET + if(rflag) { + Attrib *attrs; + if (!(attrs = do_fstat(conn, handle, handle_len, 0))) { + error("read size of \"%s\": %s", + local_path, strerror(errno)); + close(local_fd); + buffer_free(&msg); + return(-1); + } + if (!(attrs->flags & SSH2_FILEXFER_ATTR_SIZE)) { + error("read size of %s: size was not given\n", local_path); + close(local_fd); + buffer_free(&msg); + return(-1); + } + offset = attrs->size; + debug3("reput: restarting at...
2005 May 19
1
ssh-keygen private keys export - new feature
...tring(&b, "dl-modp{sign{dsa-nist-sha1},dh{plain}}"); + break; + case KEY_RSA: + buffer_put_cstring(&b, "if-modn{sign{rsa-pkcs1-md5}}"); + break; + default: + error("do_convert_private_ssh2_to_blob: unsupported key type %d", + key->type); + buffer_free(&b); + return 0; + } + + buffer_put_cstring(&b, "none"); + + len1 = buffer_len(&b); + buffer_put_int(&b, 0); + buffer_put_int(&b, 0); + + switch (key->type) { + case KEY_DSA: + buffer_put_int(&b, 0); + buffer_put_bignum_bits(&b, key->dsa->p);...
2002 Apr 18
1
xxx_kex possible memory leak?
...e run into a possible memory leak, and I'm not sure whether I need to write my own cleanup function for it or not. The xxx_kex global (defined in sshd.c) seems to not get freed. I've had difficulty finding a cleanup routine for it. I've been looking for anything similar to key_free() or buffer_free() that might work for the Kex struct, but have had no luck. Does anyone know if such a cleanup function exists? Or is this a known memory leak? Or am I just smoking crack? Any pointers are greatly appreciated! Regards, Dan Moulding Firmware Engineer Phone :801.887.9885 FAX :801.972.5789 Cell...
2006 Aug 17
0
[RFC] proposed extensions for SFTP
...sftp-server.c =================================================================== RCS file: /cvs/src/usr.bin/ssh/sftp-server.c,v retrieving revision 1.70 diff -u -r1.70 sftp-server.c --- sftp-server.c 3 Aug 2006 03:34:42 -0000 1.70 +++ sftp-server.c 17 Aug 2006 22:43:04 -0000 @@ -462,6 +463,35 @@ buffer_free(&msg); } +static void +send_statvfs(u_int32_t id, struct statvfs *st) +{ + Buffer msg; + int flag = 0; + + if (st->f_flag & ST_RDONLY) + flag |= SSH2_FX_ST_RDONLY; + if (st->f_flag & ST_NOSUID) + flag |= SSH2_FX_ST_NOSUID; + + buffer_init(&msg); + buffer_put_char(&msg...
2006 Aug 19
0
[PATCH] add statfs extension to sftp-server
...server.c 2006-08-19 16:49:03.000000000 +0200 @@ -19,6 +19,7 @@ #include <sys/stat.h> #include <sys/time.h> #include <sys/param.h> +#include <sys/mount.h> #include <dirent.h> #include <errno.h> @@ -462,6 +463,24 @@ send_attrib(u_int32_t id, const Attrib * buffer_free(&msg); } +static void +send_statfs(u_int32_t id, struct statfs *st) +{ + Buffer msg; + + buffer_init(&msg); + buffer_put_char(&msg, SSH2_FXP_EXTENDED_REPLY); + buffer_put_int(&msg, id); + buffer_put_int(&msg, st->f_bsize); + buffer_put_int64(&msg, st->f_blocks); + b...
2012 Jan 28
1
PATCH: Fix memory leak in sshd
...-- diff --git a/monitor.c b/monitor.c index a166fed..6464eec 100644 --- a/monitor.c +++ b/monitor.c @@ -510,6 +510,7 @@ monitor_read_log(struct monitor *pmonitor) debug("%s: child log fd closed", __func__); close(pmonitor->m_log_recvfd); pmonitor->m_log_recvfd = -1; + buffer_free(&logmsg); return -1; } fatal("%s: log fd read: %s", __func__, strerror(errno));
2004 Sep 10
2
getting framesize in client
...h_index_last_w = bh_index_last_o = file_info_.seek_to_in_sec * 1000 / BITRATE_HIST_SEGMENT_MSEC % BITRATE_HIST_SIZE; file_info_.seek_to_in_sec = -1; file_info_.eof = false; wide_samples_in_reservoir_ = 0; @@ -390,6 +419,8 @@ /* are these two calls necessary? */ flac_ip.output->buffer_free(); flac_ip.output->buffer_free(); + + g_free(file_info_.title); pthread_exit(NULL); return 0; /* to silence the compiler warning about not returning a value */ -------------- next part -------------- --- src/plugin_xmms/wrap_id3.c.orig 2002-11-07 18:40:44.000000000 +0100 +++ src/plugin_...
2004 Sep 10
0
getting framesize in client
...index_last_o = bh_index_o; + flac_ip.set_info(file_info_.title, file_info_.length_in_msec, bitrate_history[bh_index_o], file_info_.sample_rate, file_info_.channels); + } + } } safe_decoder_finish_(decoder_); @@ -390,6 +419,8 @@ /* are these two calls necessary? */ flac_ip.output->buffer_free(); flac_ip.output->buffer_free(); + + g_free(file_info_.title); pthread_exit(NULL); return 0; /* to silence the compiler warning about not returning a value */
2004 Aug 06
0
[PATCH] speex-xmms endian problems fixed
...n_audio(FMT_S16_NE, speex_fs->freq, speex_fs->channels) == 0) { fprintf(stderr, SELF ": audio error\n"); return; @@ -427,7 +427,7 @@ while (speex_ip.output->buffer_free() < (speex_fs->framesize * sizeof(short)) && speex_fs->playing) xmms_usleep(10000); - speex_ip.add_vis_pcm(speex_ip.output->written_time(), FMT_S16_LE, speex_fs->channels, speex_fs->framesize * sizeof...