]> www.infradead.org Git - users/dhowells/kafs-utils.git/commitdiff
rxgen: Need to align after encoding an array of bytes or a string
authorDavid Howells <dhowells@redhat.com>
Mon, 7 Apr 2014 23:22:16 +0000 (00:22 +0100)
committerDavid Howells <dhowells@redhat.com>
Mon, 7 Apr 2014 23:23:10 +0000 (00:23 +0100)
Padding may need to be inserted after encoding an array of bytes or a string
to bring the buffer to 4-byte alignment.

Signed-off-by: David Howells <dhowells@redhat.com>
py_rxgen.c

index b32a0c7f66c1bccd7ea56d5dc87d8c56327fcb9a..7a3261c713748ca48ecd1dfa1bd3afe8b79f1ea4 100644 (file)
@@ -871,6 +871,7 @@ int py_enc_buffer(struct rx_call *call, Py_buffer *view)
                goto error;
 
 done:
+       rxrpc_enc_align(call);
        return rxrpc_post_enc(call);
 
 error: