diff options
author | Simon Buttgereit <simon.buttgereit@gmail.com> | 2017-02-07 07:53:33 (GMT) |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2017-02-27 15:43:48 (GMT) |
commit | 7efe45f96dfdd66516a2933d5ddc1bd0588fb207 (patch) | |
tree | 98a127ce10e01735652241cf423c9832d552cba8 /lib | |
parent | 55490ceea57a0e9f1fef28ee90121e0bd76ef5b5 (diff) | |
download | libnl-7efe45f96dfdd66516a2933d5ddc1bd0588fb207.zip libnl-7efe45f96dfdd66516a2933d5ddc1bd0588fb207.tar.gz libnl-7efe45f96dfdd66516a2933d5ddc1bd0588fb207.tar.bz2 |
little style fixes.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/xfrm/sp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/xfrm/sp.c b/lib/xfrm/sp.c index df4f7a2..ffde1bd 100644 --- a/lib/xfrm/sp.c +++ b/lib/xfrm/sp.c @@ -1190,7 +1190,7 @@ int xfrmnl_sp_set_sec_ctx (struct xfrmnl_sp* sp, unsigned int len __attribute__( /* Free up the old context string and allocate new one */ if (sp->sec_ctx) free (sp->sec_ctx); - if ((sp->sec_ctx = calloc (1, sizeof(struct xfrmnl_user_sec_ctx) + ctx_len)) == NULL) + if ((sp->sec_ctx = calloc (1, sizeof (struct xfrmnl_user_sec_ctx) + ctx_len)) == NULL) return -1; /* Save the new info */ @@ -1199,7 +1199,7 @@ int xfrmnl_sp_set_sec_ctx (struct xfrmnl_sp* sp, unsigned int len __attribute__( sp->sec_ctx->ctx_alg = alg; sp->sec_ctx->ctx_doi = doi; sp->sec_ctx->ctx_len = ctx_len; - memcpy ((void *)sp->sec_ctx->ctx, (void *)ctx_str, sizeof (uint8_t) * ctx_len); + memcpy ((void *)sp->sec_ctx->ctx, (void *)ctx_str, ctx_len); sp->ce_mask |= XFRM_SP_ATTR_SECCTX; |