In wsp_server_method_states.def :

If the Post Data is Null, there is a segmentation fault.

Here is my patch:

ROW(NULL_METHOD,
 TR_Invoke_Ind,
 e->tcl == 2 && pdu->type == Post,
 {
  ...
  /*
   * The Siemens S35 adds an extra NUL character to the end
   * of the request body which may not work with certain cgi
   * scripts. It is removed here by truncating the length.
   */
  req_body_size = octstr_len(pdu->u.Post.data);

  if(req_body_size > 0)
   if(octstr_get_char(pdu->u.Post.data,(req_body_size - 1)) == 0)
    octstr_truncate(pdu->u.Post.data,(req_body_size - 1));
  ...
 }

Aymerick J�hanne
YacCom



Reply via email to