From 9d1c335716bf75f2e751cd7272fd4f7feca2b6d0 Mon Sep 17 00:00:00 2001 From: Phil Carmody Date: Thu, 30 Aug 2018 11:38:41 +0300 Subject: [PATCH] pop3: use array interface rather than internal buffer to access data Signed-off-by: Phil Carmody --- src/pop3/pop3-client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pop3/pop3-client.c b/src/pop3/pop3-client.c index c6d58bb8b8..4471e75e19 100644 --- a/src/pop3/pop3-client.c +++ b/src/pop3/pop3-client.c @@ -224,12 +224,12 @@ static int read_mailbox(struct client *client, uint32_t *failed_uid_r) client->trans = t; client->message_sizes = - buffer_free_without_data(&message_sizes.arr.buffer); + array_free_without_data(&message_sizes); if (array_is_created(&msgnum_to_seq_map)) { client->msgnum_to_seq_map_count = array_count(&msgnum_to_seq_map); client->msgnum_to_seq_map = - buffer_free_without_data(&msgnum_to_seq_map.arr.buffer); + array_free_without_data(&msgnum_to_seq_map); } return 1; }