master
norrarvid 13 years ago
parent 42bda50fe0
commit 67a2a3c4c7

@ -66,7 +66,7 @@ xrdp_channel_delete(struct xrdp_channel* self)
{ {
return; return;
} }
memset(self,0,sizeof(struct xrdp_channel)); g_memset(self,0,sizeof(struct xrdp_channel));
g_free(self); g_free(self);
} }

@ -141,14 +141,16 @@ xrdp_mcs_recv(struct xrdp_mcs* self, struct stream* s, int* chan)
DEBUG(("xrdp_mcs_recv adding channel %4.4x", chanid)); DEBUG(("xrdp_mcs_recv adding channel %4.4x", chanid));
if(xrdp_mcs_send_cjcf(self, userid, chanid)!=0) if(xrdp_mcs_send_cjcf(self, userid, chanid)!=0)
{ {
g_writeln("Non handled error from xrdp_mcs_send_cjcf") ; g_writeln("Non handled error from xrdp_mcs_send_cjcf") ;
} }
continue; continue;
} }
if(appid==MCS_SDRQ || appid==MCS_SDIN) if(appid==MCS_SDRQ || appid==MCS_SDIN)
{ {
break ; break ;
}else{ }
else
{
g_writeln("Recieved an unhandled appid:%d",appid); g_writeln("Recieved an unhandled appid:%d",appid);
} }
break; break;

@ -251,7 +251,9 @@ xrdp_rdp_recv(struct xrdp_rdp* self, struct stream* s, int* code)
{ {
g_writeln("xrdp_channel_process returned unhandled error") ; g_writeln("xrdp_channel_process returned unhandled error") ;
} }
}else{ }
else
{
g_writeln("Wrong channel Id to be handled by xrdp_channel_process %d",chan); g_writeln("Wrong channel Id to be handled by xrdp_channel_process %d",chan);
} }
s->next_packet = 0; s->next_packet = 0;
@ -274,7 +276,9 @@ xrdp_rdp_recv(struct xrdp_rdp* self, struct stream* s, int* code)
len = (int)(s->end - s->p); len = (int)(s->end - s->p);
g_writeln("xrdp_rdp_recv: bad RDP packet, length [%d]", len); g_writeln("xrdp_rdp_recv: bad RDP packet, length [%d]", len);
return 0; return 0;
}else{ }
else
{
in_uint16_le(s, len); in_uint16_le(s, len);
/*g_writeln("New len received : %d next packet: %d s_end: %d",len,s->next_packet,s->end); */ /*g_writeln("New len received : %d next packet: %d s_end: %d",len,s->next_packet,s->end); */
in_uint16_le(s, pdu_code); in_uint16_le(s, pdu_code);

Loading…
Cancel
Save