summaryrefslogtreecommitdiff
path: root/source3/librpc/gen_ndr/ndr_krb5pac.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/librpc/gen_ndr/ndr_krb5pac.c')
-rw-r--r--source3/librpc/gen_ndr/ndr_krb5pac.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/source3/librpc/gen_ndr/ndr_krb5pac.c b/source3/librpc/gen_ndr/ndr_krb5pac.c
index 82b7803f80..7c4dba0b0a 100644
--- a/source3/librpc/gen_ndr/ndr_krb5pac.c
+++ b/source3/librpc/gen_ndr/ndr_krb5pac.c
@@ -442,8 +442,7 @@ _PUBLIC_ void ndr_print_PAC_DATA(struct ndr_print *ndr, const char *name, const
ndr->depth++;
for (cntr_buffers_0=0;cntr_buffers_0<r->num_buffers;cntr_buffers_0++) {
char *idx_0=NULL;
- asprintf(&idx_0, "[%d]", cntr_buffers_0);
- if (idx_0) {
+ if (asprintf(&idx_0, "[%d]", cntr_buffers_0) != -1) {
ndr_print_PAC_BUFFER(ndr, "buffers", &r->buffers[cntr_buffers_0]);
free(idx_0);
}
@@ -645,8 +644,7 @@ _PUBLIC_ void ndr_print_PAC_DATA_RAW(struct ndr_print *ndr, const char *name, co
ndr->depth++;
for (cntr_buffers_0=0;cntr_buffers_0<r->num_buffers;cntr_buffers_0++) {
char *idx_0=NULL;
- asprintf(&idx_0, "[%d]", cntr_buffers_0);
- if (idx_0) {
+ if (asprintf(&idx_0, "[%d]", cntr_buffers_0) != -1) {
ndr_print_PAC_BUFFER_RAW(ndr, "buffers", &r->buffers[cntr_buffers_0]);
free(idx_0);
}