summaryrefslogtreecommitdiffstats
path: root/source4/libnet/libnet_join.c
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-10-24 19:30:12 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-10-24 17:57:06 +0000
commit49dee0e453049a2b26aaacf81e61a0f11afccd91 (patch)
tree67cc5d76f097367c1af1fa56a18b6816735f7cb9 /source4/libnet/libnet_join.c
parent482c02284068810a57b35a509857fb1273d833b0 (diff)
downloadsamba-49dee0e453049a2b26aaacf81e61a0f11afccd91.tar.gz
samba-49dee0e453049a2b26aaacf81e61a0f11afccd91.tar.xz
samba-49dee0e453049a2b26aaacf81e61a0f11afccd91.zip
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.
Diffstat (limited to 'source4/libnet/libnet_join.c')
-rw-r--r--source4/libnet/libnet_join.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source4/libnet/libnet_join.c b/source4/libnet/libnet_join.c
index 6c030be7283..50b5c1f4730 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);