… | |
… | |
476 | /* It would make more sense to catch this pre-emptively in the code above. |
476 | /* It would make more sense to catch this pre-emptively in the code above. |
477 | * however, if this really happens, we probably just want to cut down the |
477 | * however, if this really happens, we probably just want to cut down the |
478 | * size to less than 1000, since that is what we claim the protocol would |
478 | * size to less than 1000, since that is what we claim the protocol would |
479 | * support. |
479 | * support. |
480 | */ |
480 | */ |
481 | if (sl.len >= MAXSOCKBUF) |
481 | if (sl.length () >= MAXSOCKBUF) |
482 | { |
482 | { |
483 | LOG (llevError, "send_image_send: buffer overrun, %d > %d\n", sl.len, MAXSOCKBUF); |
483 | LOG (llevError, "send_image_send: buffer overrun, %d > %d\n", sl.length (), MAXSOCKBUF); |
484 | abort (); |
484 | abort (); |
485 | } |
485 | } |
486 | |
486 | |
487 | Send_With_Handling (ns, &sl); |
487 | Send_With_Handling (ns, &sl); |
488 | } |
488 | } |