You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Alan M. Carroll (JIRA)" <ji...@apache.org> on 2010/10/21 02:55:27 UTC

[jira] Assigned: (TS-493) Return value from pcre_exec tested incorrectly

     [ https://issues.apache.org/jira/browse/TS-493?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alan M. Carroll reassigned TS-493:
----------------------------------

    Assignee: Alan M. Carroll

> Return value from pcre_exec tested incorrectly
> ----------------------------------------------
>
>                 Key: TS-493
>                 URL: https://issues.apache.org/jira/browse/TS-493
>             Project: Traffic Server
>          Issue Type: Bug
>    Affects Versions: 2.1.3
>            Reporter: Alan M. Carroll
>            Assignee: Alan M. Carroll
>            Priority: Minor
>             Fix For: 2.1.4
>
>
> proxy/ControlMatcher.cc:371
> The return value of pcre_exec is checked against -1 for error. However, the return value -1 means "not found" which is not actually an error. If there is an error, different negative values are returned which this logic will interpret as success.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.