From 04f4384c82c5ab16dcc0a0b4eb9c7fa8cd15ec48 Mon Sep 17 00:00:00 2001
From: Nico <nigr21@inf.ufpr.br>
Date: Sat, 25 Feb 2023 11:16:37 -0300
Subject: [PATCH] falta a parte do servidor

---
 headers/client.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/headers/client.h b/headers/client.h
index e704893..f06619b 100644
--- a/headers/client.h
+++ b/headers/client.h
@@ -79,7 +79,7 @@ frame *client::receive_ack(frame *f)
   // esperando, continuamos tentando receber
   do {
     ack_res = socket->receive_frame();
-    if (ack_res->get_tipo() == ERRO) 
+    if (ack_res && ack_res->get_tipo() == ERRO) 
     { 
       cout << "Espaco insulficiente no destino\n";
       return NULL;
-- 
GitLab