Skip to content
Snippets Groups Projects
Commit 346496ff authored by bontric's avatar bontric
Browse files

add contactId check in ContactMailboxSession

parent 4f2d526c
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -109,6 +109,11 @@ public class ContactMailboxSession extends AbstractMailboxSession {
public void handleRequest(MailboxRequest request)
throws ProtocolException {
MailboxRequestTake takeRequest = (MailboxRequestTake) request;
if (takeRequest.hasContactId())
throw new ProtocolException(
"TAKE request from contact mailbox must not have contactId");
InputStream in = new ByteArrayInputStream(
takeRequest.getEncryptedSyncStream());
try {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment