]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
pop3: use array interface rather than internal buffer to access data
authorPhil Carmody <phil@dovecot.fi>
Thu, 30 Aug 2018 08:38:41 +0000 (11:38 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 30 Aug 2018 12:18:25 +0000 (12:18 +0000)
Signed-off-by: Phil Carmody <phil@dovecot.fi>
src/pop3/pop3-client.c

index c6d58bb8b854150057ff421def26d117280faa5c..4471e75e19277c70fa1c6be23afff35b71882261 100644 (file)
@@ -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;
 }