Ticket #10088: engine.ipp.patch

File engine.ipp.patch, 454 bytes (added by Gaurav Gupta <g.gupta@…>, 8 years ago)

Avoid possible NULL Pointer derefference .

  • engine.ipp

    diff -Naur a/engine.ipp b/engine.ipp
    a b  
    211211
    212212  // SSL v2 doesn't provide a protocol-level shutdown, so an eof on the
    213213  // underlying transport is passed through.
    214   if (ssl_ && ssl_->version == SSL2_VERSION)
     214  if (ssl_->version == SSL2_VERSION)
    215215    return ec;
    216216
    217217  // Otherwise, the peer should have negotiated a proper shutdown.