From 49dee0e453049a2b26aaacf81e61a0f11afccd91 Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Sun, 24 Oct 2010 19:30:12 +0200 Subject: s4:dsdb - use the more safe "samdb_msg_add_(u)int*" calls always where possible This should prevent all possible integer storage problems in future. --- source4/libnet/libnet_join.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'source4/libnet') diff --git a/source4/libnet/libnet_join.c b/source4/libnet/libnet_join.c index 6c030be728..50b5c1f473 100644 --- a/source4/libnet/libnet_join.c +++ b/source4/libnet/libnet_join.c @@ -332,9 +332,8 @@ static NTSTATUS libnet_JoinADSDomain(struct libnet_context *ctx, struct libnet_J } msg->dn = res->msgs[0]->dn; - rtn = ldb_msg_add_fmt(msg, "msDS-SupportedEncryptionTypes", - "%lu", - (long unsigned int)(ENC_ALL_TYPES)); + rtn = samdb_msg_add_uint(remote_ldb, msg, msg, + "msDS-SupportedEncryptionTypes", ENC_ALL_TYPES); if (rtn != LDB_SUCCESS) { r->out.error_string = NULL; talloc_free(tmp_ctx); -- cgit