summaryrefslogtreecommitdiffhomepage
path: root/svr-chansession.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2004-06-03 17:22:48 +0000
committerMatt Johnston <matt@ucc.asn.au>2004-06-03 17:22:48 +0000
commit9f369bc42ff9e01ab9d72edd74b1d838b69c1c78 (patch)
tree29418de38ee376673c9a1a54ce02a62a7ee0edff /svr-chansession.c
parent444dbb5364798925a3cacddba7b1bb3041e41a23 (diff)
Mostly done with the listener changeover
--HG-- extra : convert_revision : 1a4dca8836a2a04a21fb675c718a549a8d445d25
Diffstat (limited to 'svr-chansession.c')
-rw-r--r--svr-chansession.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/svr-chansession.c b/svr-chansession.c
index 4dd4228..c6526dc 100644
--- a/svr-chansession.c
+++ b/svr-chansession.c
@@ -419,7 +419,7 @@ static int sessionpty(struct ChanSess * chansess) {
return DROPBEAR_FAILURE;
}
- chansess->tty = (char*)strdup(namebuf);
+ chansess->tty = (char*)m_strdup(namebuf);
if (!chansess->tty) {
dropbear_exit("out of memory"); /* TODO disconnect */
}
@@ -541,7 +541,7 @@ static int sessioncommand(struct Channel *channel, struct ChanSess *chansess,
#ifdef SFTPSERVER_PATH
if ((cmdlen == 4) && strncmp(chansess->cmd, "sftp", 4) == 0) {
m_free(chansess->cmd);
- chansess->cmd = strdup(SFTPSERVER_PATH);
+ chansess->cmd = m_strdup(SFTPSERVER_PATH);
} else
#endif
{