Rev 2081 | Rev 2090 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 2081 | Rev 2087 | ||
|---|---|---|---|
| Line 235... | Line 235... | ||
| 235 | { |
235 | { |
| 236 | std::string* payload_str; |
236 | std::string* payload_str; |
| 237 | payload_str = static_cast<std::string*>(message->GetPayload().get()); |
237 | payload_str = static_cast<std::string*>(message->GetPayload().get()); |
| 238 | std::string line = *payload_str; |
238 | std::string line = *payload_str; |
| 239 | 239 | ||
| 240 | if (line.length() < |
240 | if (line.length() < 16) |
| 241 | { |
241 | { |
| 242 | log::Error(log_module_, "Packet was to short: \"%s\".", line.data()); |
242 | log::Error(log_module_, "Packet was to short: \"%s\".", line.data()); |
| 243 | return; |
243 | return; |
| 244 | } |
244 | } |
| 245 | 245 | ||