summaryrefslogtreecommitdiffstats
path: root/libxrdp
diff options
context:
space:
mode:
authorjsorg71 <jsorg71>2007-05-06 06:46:42 +0000
committerjsorg71 <jsorg71>2007-05-06 06:46:42 +0000
commitf2f8bb727d4614ceb35179453af93f45629850f9 (patch)
treec2c306ebe87a115231f3a172bb08019632786d10 /libxrdp
parent25f5915a446747b802ceb228cbe839fe8f4c8680 (diff)
downloadxrdp-proprietary-f2f8bb727d4614ceb35179453af93f45629850f9.tar.gz
xrdp-proprietary-f2f8bb727d4614ceb35179453af93f45629850f9.zip
make sure next_packet is not null
Diffstat (limited to 'libxrdp')
-rw-r--r--libxrdp/libxrdp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libxrdp/libxrdp.c b/libxrdp/libxrdp.c
index 0d210ea6..6b655c12 100644
--- a/libxrdp/libxrdp.c
+++ b/libxrdp/libxrdp.c
@@ -122,7 +122,8 @@ libxrdp_process_data(struct xrdp_session* session)
}
if (cont)
{
- cont = session->s->next_packet < session->s->end;
+ cont = (session->s->next_packet != 0) &&
+ (session->s->next_packet < session->s->end);
}
}
return rv;