… | |
… | |
132 | if (inbuf_len >= 2 + pkt_len) |
132 | if (inbuf_len >= 2 + pkt_len) |
133 | return 2 + pkt_len; |
133 | return 2 + pkt_len; |
134 | |
134 | |
135 | if (inbuf_len == sizeof (inbuf)) |
135 | if (inbuf_len == sizeof (inbuf)) |
136 | { |
136 | { |
137 | send_packet_printf ("drawinfo %d input buffer overflow - closing connection.", NDI_RED | NDI_REPLY); |
137 | send_packet_printf ("msg %d 0 input buffer overflow - closing connection.", NDI_RED | NDI_REPLY); |
138 | destroy (); |
138 | destroy (); |
139 | return -1; |
139 | return -1; |
140 | } |
140 | } |
141 | } |
141 | } |
142 | |
142 | |