~ubuntu-branches/ubuntu/raring/modsecurity-apache/raring

« back to all changes in this revision

Viewing changes to apache2/re_operators.c

  • Committer: Package Import Robot
  • Author(s): Alberto Gonzalez Iniesta
  • Date: 2011-12-28 16:51:11 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20111228165111-8elucllauydvcnwx
Tags: 2.6.3-1
* New upstream release
* Include mlogc (still missing manpage). (Closes: #645875)
* postinst: changed force-reload to restart to avoid apache from segfaulting
  when upgrading modsecurity module (Closes: #574376)

Show diffs side-by-side

added added

removed removed

Lines of Context:
455
455
        msr->stream_output_length = size;
456
456
 
457
457
        if(stream_output_data == NULL)  {
458
 
            free (msr->stream_output_data);
459
 
            msr->stream_output_data = NULL;
460
458
            return -1;
461
459
        }
462
460
 
463
461
        var->value_len = size;
464
462
        msr->of_stream_changed = 1;
 
463
 
465
464
        msr->stream_output_data = (char *)stream_output_data;
466
465
        if(msr->stream_output_data != NULL)
467
466
            apr_cpystrn(msr->stream_output_data, data, size);
475
474
        msr->stream_input_length = size;
476
475
 
477
476
        if(stream_input_data == NULL)  {
478
 
            free (msr->stream_input_data);
479
 
            msr->stream_input_data = NULL;
480
477
            return -1;
481
478
        }
482
479
 
483
480
        var->value_len = size;
 
481
        msr->if_stream_changed = 1;
 
482
 
484
483
        msr->stream_input_data = (char *)stream_input_data;
485
484
        if(msr->stream_input_data != NULL)
486
485
            apr_cpystrn(msr->stream_input_data, data, size);
487
 
        msr->if_stream_changed = 1;
488
486
    }
489
487
 
490
488
    if (! *error_msg) {