summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qarsh/qarshd.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/qarsh/qarshd.c b/qarsh/qarshd.c
index 70ed09d..1427089 100644
--- a/qarsh/qarshd.c
+++ b/qarsh/qarshd.c
@@ -159,7 +159,6 @@ handle_packets(int infd)
pid_t child_pid = 0;
int child_status;
ssize_t nbytes;
- int i=0;
sigemptyset(&sigmask);
sigaddset(&sigmask, SIGCHLD);
@@ -173,7 +172,6 @@ handle_packets(int infd)
FD_SET(infd, &rfds);
timeout.tv_sec = 3;
- syslog(LOG_INFO, "Iteration: %d\n", i++);
nfd = pselect(infd+1, &rfds, NULL, NULL, &timeout, &orig_sigmask);
if (child_exitted) {
@@ -224,7 +222,7 @@ handle_packets(int infd)
qp->qp_runcmd.qp_stderr_port);
break;
case QP_RECVFILE:
- syslog(LOG_INFO, "Got a QP_GETFILE with path = %s, "
+ syslog(LOG_INFO, "Got a QP_RECVFILE with path = %s, "
"ifd = %d, count = %d, mode = %o\n",
qp->qp_recvfile.qp_path,
qp->qp_recvfile.qp_if_port,
@@ -242,9 +240,10 @@ handle_packets(int infd)
qp->qp_recvfile.qp_count, nbytes);
rp = make_qp_returncode(-1, 0, tmpstr);
} else {
- rp = make_qp_returncode(0, 0, "Tranfer Complete");
+ rp = make_qp_returncode(0, 0, "Transfer Complete");
}
send_packet(fileno(stdout), rp);
+ qpfree(rp);
break;
case QP_SENDFILE:
syslog(LOG_INFO, "Got a QP_SENDFILE with path = %s, "