Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit 57fba15

Browse files
Alprema_cpAlprema_cp
authored andcommitted
ActiveUp.Net.Imap4: Imap4Client now throws an exception if the stream returns null,
preventing the receive code from looping for ever and ending in an OutOfMemoryException
1 parent 55da5ab commit 57fba15

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Class Library/ActiveUp.Net.Imap4/Imap4Client.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1147,6 +1147,8 @@ public string Command(string command, string stamp, CommandOptions options = nul
11471147
break;
11481148
}
11491149
}
1150+
else
1151+
throw new Imap4Exception("Unexpected end of stream");
11501152
}
11511153
var bufferString = buffer.ToString();
11521154

0 commit comments

Comments
 (0)