mirror of
https://github.com/clearml/dropbear
synced 2025-02-01 19:34:11 +00:00
Turn type local variable into char *
This commit is contained in:
parent
9f97511356
commit
e5ce3fc51b
@ -343,7 +343,7 @@ static void closechansess(struct Channel *channel) {
|
|||||||
* or x11/authagent forwarding. These are passed to appropriate handlers */
|
* or x11/authagent forwarding. These are passed to appropriate handlers */
|
||||||
static void chansessionrequest(struct Channel *channel) {
|
static void chansessionrequest(struct Channel *channel) {
|
||||||
|
|
||||||
unsigned char * type = NULL;
|
char * type = NULL;
|
||||||
unsigned int typelen;
|
unsigned int typelen;
|
||||||
unsigned char wantreply;
|
unsigned char wantreply;
|
||||||
int ret = 1;
|
int ret = 1;
|
||||||
@ -351,7 +351,7 @@ static void chansessionrequest(struct Channel *channel) {
|
|||||||
|
|
||||||
TRACE(("enter chansessionrequest"))
|
TRACE(("enter chansessionrequest"))
|
||||||
|
|
||||||
type = buf_getstring(ses.payload, &typelen);
|
type = (char *) buf_getstring(ses.payload, &typelen);
|
||||||
wantreply = buf_getbool(ses.payload);
|
wantreply = buf_getbool(ses.payload);
|
||||||
|
|
||||||
if (typelen > MAX_NAME_LEN) {
|
if (typelen > MAX_NAME_LEN) {
|
||||||
|
Loading…
Reference in New Issue
Block a user