… | |
… | |
441 | * however, if this really happens, we probably just want to cut down the |
441 | * however, if this really happens, we probably just want to cut down the |
442 | * size to less than 1000, since that is what we claim the protocol would |
442 | * size to less than 1000, since that is what we claim the protocol would |
443 | * support. |
443 | * support. |
444 | */ |
444 | */ |
445 | //TODO: taken care of above, should simply abort or make sure the above code is correct |
445 | //TODO: taken care of above, should simply abort or make sure the above code is correct |
446 | if (sl.length () >= MAXSOCKBUF) |
446 | if (sl.length () > MAXSOCKBUF) |
447 | { |
447 | { |
448 | LOG (llevError, "send_image_send: buffer overrun, %d > %d\n", sl.length (), MAXSOCKBUF); |
448 | LOG (llevError, "send_image_send: buffer overrun, %d > %d\n", sl.length (), MAXSOCKBUF); |
449 | abort (); |
449 | abort (); |
450 | } |
450 | } |
451 | |
451 | |