diff options
author | Raimo Niskanen <[email protected]> | 2010-07-07 10:48:49 +0200 |
---|---|---|
committer | Raimo Niskanen <[email protected]> | 2010-07-07 10:48:49 +0200 |
commit | 3865a7373bba2ede731eca614dddd18bb50ce7d6 (patch) | |
tree | 8f45ebfe78af46a1e9c54a6f96f8a93b8af01a18 /erts/emulator/beam | |
parent | 9b02822645a15985fca8f73b75456538c362cd2a (diff) | |
parent | 288f54c8f4f7cac0951f0807e4a6d3b59c099156 (diff) | |
download | otp-3865a7373bba2ede731eca614dddd18bb50ce7d6.tar.gz otp-3865a7373bba2ede731eca614dddd18bb50ce7d6.tar.bz2 otp-3865a7373bba2ede731eca614dddd18bb50ce7d6.zip |
Merge branch 'se/http_response_empty_phrase' into dev
* se/http_response_empty_phrase:
{packet,http} allow empty response phrase
Diffstat (limited to 'erts/emulator/beam')
-rw-r--r-- | erts/emulator/beam/packet_parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/packet_parser.c b/erts/emulator/beam/packet_parser.c index 8c8029d450..5bcd567b5f 100644 --- a/erts/emulator/beam/packet_parser.c +++ b/erts/emulator/beam/packet_parser.c @@ -679,7 +679,7 @@ int packet_parse_http(const char* buf, int len, int* statep, while (n && SP(ptr)) { ptr++; n--; } - if (ptr==p0) return -1; + if (ptr==p0 && n>0) return -1; /* NOTE: the syntax allows empty reason phrases */ (*statep) = !0; |