Procházet zdrojové kódy

ncd: NCDRequestClient: add missing assignment

ambrop7 před 14 roky
rodič
revize
00dd7e59f3
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  1. 2 0
      ncd/NCDRequestClient.c

+ 2 - 0
ncd/NCDRequestClient.c

@@ -358,6 +358,8 @@ static void build_nodata_packet (uint32_t request_id, uint32_t type, uint8_t *da
     header->pp.len = htol16(sizeof(header->rp));
     header->rp.request_id = htol32(request_id);
     header->rp.type = htol32(type);
+    
+    *out_len = sizeof(*header);
 }
 
 static void req_free (struct NCDRequestClient_req *req)