You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by bryancall <gi...@git.apache.org> on 2016/12/22 04:12:55 UTC

[GitHub] trafficserver issue #802: TS-4583: Null-pointer dereference after check

Github user bryancall commented on the issue:

    https://github.com/apache/trafficserver/pull/802
  
    I think it is correct to check the value of the server_entry is not NULL before dereferencing the pointer in the same conditional.  This is a common pattern.
    
    The method release_server_session dereferences dereference server_entry, so it is most likely stopped by the servers_session NULL pointer check before the dereference.  This is more of a side effect and shouldn't be relied on.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---