search for: buffer_get_int_ret

Displaying 3 results from an estimated 3 matches for "buffer_get_int_ret".

2012 May 03
5
[PATCH/RFC 0/6] New mux client request to list open tcp forwardings.
These patches implement a new mux client request to list the currently opened TCP forwardings. It also removes some todos regarding keeping the list of forwardings in the options up-to-date. Bert Wesarg (6): attach the forwarding type to struct Forward merge local and remote forward lists generate unique ids for forwardings to be used for identification remove closed forwardings from
2010 Jan 14
1
ssh(1) multiplexing rewrite
...R, &m) == -1) { - error("%s: client msg_send failed", __func__); - close(client_fd); - buffer_free(&m); - return start_close; + if (state->conn_state != MUX_HELLO_WAIT) { + error("%s: MUX_MSG_HELLO received in state MUX_UP", __func__); + return -1; + } + if (buffer_get_int_ret(&ver, m) != 0) { + malf: + error("%s: malformed message", __func__); + return -1; + } + if (ver != SSHMUX_VER) { + error("Unsupported multiplexing protocol version %d " + "(expected %d)", ver, SSHMUX_VER); + return -1; + } + debug2("%s: channel %d sla...
2014 Mar 03
6
[Bug 2207] New: Potential NULL deference, found using coverity
.../crypto/openssh/authfile.c:296: cond_false: Condition "(cp = buffer_append_space(&kdf, klen)) == NULL", taking false branch path:/c/amesh/142/src/crypto/openssh/authfile.c:299: if_end: End of if statement path:/c/amesh/142/src/crypto/openssh/authfile.c:303: cond_false: Condition "buffer_get_int_ret(&nkeys, &copy) < 0", taking false branch path:/c/amesh/142/src/crypto/openssh/authfile.c:306: if_end: End of if statement path:/c/amesh/142/src/crypto/openssh/authfile.c:307: cond_false: Condition "nkeys != 1", taking false branch path:/c/amesh/142/src/crypto/openssh/authf...