[btls]: MonoBtlsError.GetError(out string, out int) returns 0, not null. (#4338)
[mono.git] / mcs / class / System / Mono.Btls / MonoBtlsContext.cs
index d4fb3223510951ef546d3cce0a666cd549d33da6..5854e8c7fef1d3dc343fe0074302cc0bba00258f 100644 (file)
@@ -159,7 +159,7 @@ namespace Mono.Btls
                        string file;
                        int line;
                        var error = MonoBtlsError.GetError (out file, out line);
-                       if (error == null)
+                       if (error == 0)
                                return new MonoBtlsException (status);
 
                        var text = MonoBtlsError.GetErrorString (error);