aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2017-06-26 20:25:57 +0200
committerNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2017-06-26 20:25:57 +0200
commitd1778a5beb18331b9e521527a66218fa468c9005 (patch)
treee61dd3480a4f7ac4d6f38566fc6e40f470102f97
parent071220857ef563eeb2d69006c547ff45abf376e2 (diff)
downloadirc-d1778a5beb18331b9e521527a66218fa468c9005.zip
irc-d1778a5beb18331b9e521527a66218fa468c9005.tar.bz2
Fixes invalid read in JH_meta_net_handle_reply
-rw-r--r--src/meta_net/meta_net_handle_reply.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/meta_net/meta_net_handle_reply.c b/src/meta_net/meta_net_handle_reply.c
index 558daed..83ee654 100644
--- a/src/meta_net/meta_net_handle_reply.c
+++ b/src/meta_net/meta_net_handle_reply.c
@@ -134,6 +134,7 @@ void JH_meta_net_handle_reply
while
(
(socket->in.length != 0)
+ && (socket->in.index < socket->in.length)
&& (socket->in.data[socket->in.index] == '\n')
)
{