X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FSystem%2FSystem.Net.Security%2FSslStream.cs;h=a536f3bb8224edc5cd599737bca41c05631efc3e;hb=56c2802ff9d1eec9ac6ab090100bb9cceccc83fb;hp=c0b702fde1b2f92798271fdf943402e1460eb27a;hpb=002fcd5835bf0171bbc4d938d9114de4169e9ae1;p=mono.git diff --git a/mcs/class/System/System.Net.Security/SslStream.cs b/mcs/class/System/System.Net.Security/SslStream.cs index c0b702fde1b..a536f3bb822 100644 --- a/mcs/class/System/System.Net.Security/SslStream.cs +++ b/mcs/class/System/System.Net.Security/SslStream.cs @@ -293,15 +293,15 @@ namespace System.Net.Security } public override bool CanRead { - get { return Impl.CanRead; } + get { return impl != null && impl.CanRead; } } public override bool CanTimeout { - get { return Impl.CanTimeout; } + get { return InnerStream.CanTimeout; } } public override bool CanWrite { - get { return Impl.CanWrite; } + get { return impl != null && impl.CanWrite; } } public override int ReadTimeout { @@ -337,7 +337,7 @@ namespace System.Net.Security public override void Flush () { - Impl.Flush (); + InnerStream.Flush (); } void CheckDisposed ()