[ 
https://issues.apache.org/jira/browse/TS-4697?focusedWorklogId=31693&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-31693
 ]

ASF GitHub Bot logged work on TS-4697:
--------------------------------------

                Author: ASF GitHub Bot
            Created on: 07/Nov/16 02:51
            Start Date: 07/Nov/16 02:51
    Worklog Time Spent: 10m 
      Work Description: Github user oknet commented on the issue:

    https://github.com/apache/trafficserver/pull/1200
  
    Do you means “This closes #823.“ ?
    
    2016-11-06 12:27 GMT+08:00 Phil Sorber <[email protected]>:
    
    > When you do the backports can you leave the commit messages the same
    > except for the cherry pick comment and the conflicts?
    >
    > —
    > You are receiving this because you authored the thread.
    > Reply to this email directly, view it on GitHub
    > 
<https://github.com/apache/trafficserver/pull/1200#issuecomment-258659815>,
    > or mute the thread
    > 
<https://github.com/notifications/unsubscribe-auth/AE_9sVkUa_ydpksX6BRd1GonVrRRBZDkks5q7VdPgaJpZM4KqMNo>
    > .
    >



Issue Time Tracking
-------------------

    Worklog Id:     (was: 31693)
    Time Spent: 3h 50m  (was: 3h 40m)

> MIOBuffer is not freed if ipallow check fails in HttpSessionAccept::accept()
> ----------------------------------------------------------------------------
>
>                 Key: TS-4697
>                 URL: https://issues.apache.org/jira/browse/TS-4697
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: HTTP, Network
>            Reporter: Oknet Xu
>            Assignee: Oknet Xu
>             Fix For: 7.0.0
>
>          Time Spent: 3h 50m
>  Remaining Estimate: 0h
>
> {code}
> void
> HttpSessionAccept::accept(NetVConnection *netvc, MIOBuffer *iobuf, 
> IOBufferReader *reader)
> {
>   sockaddr const *client_ip = netvc->get_remote_addr();
>   const AclRecord *acl_record = NULL;
>   ip_port_text_buffer ipb;
>   IpAllow::scoped_config ipallow;
>   // The backdoor port is now only bound to "localhost", so no
>   // reason to check for if it's incoming from "localhost" or not.
>   if (backdoor) {
>     acl_record = IpAllow::AllMethodAcl();
>   } else if (ipallow && (((acl_record = ipallow->match(client_ip)) == NULL) 
> || (acl_record->isEmpty()))) {
>     ////////////////////////////////////////////////////
>     // if client address forbidden, close immediately //
>     ////////////////////////////////////////////////////
>     Warning("client '%s' prohibited by ip-allow policy", 
> ats_ip_ntop(client_ip, ipb, sizeof(ipb)));
>     netvc->do_io_close();
>     return;   // ----------------->  MIOBuffer did not free.
>   }
> ...
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to