Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

armoring in case receive_frame gives us bad data

  • Loading branch information...
commit 26067b1caa3333e2364fdb319339134910ba3b42 1 parent 2784e34
@dakkar authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/Plack/Handler/Stomp.pm
View
5 lib/Plack/Handler/Stomp.pm
@@ -183,6 +183,11 @@ sub frame_loop {
while (1) {
my $frame = $self->connection->receive_frame();
+ if(!$frame || !ref($frame)) {
+ Net::Stomp::MooseHelpers::Exceptions::Stomp->throw({
+ stomp_error => 'empty frame received',
+ });
+ }
$self->handle_stomp_frame($app, $frame);
Plack::Handler::Stomp::Exceptions::OneShot->throw()
Please sign in to comment.
Something went wrong with that request. Please try again.