mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
pdb_nds: Fix CID 1273401 Unused value
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
e29eaa43f5
commit
de48619c15
@ -183,15 +183,19 @@ static int berEncodeLoginData(
|
||||
err = (ber_printf(requestBer, "}}", 0) < 0) ? LDAP_ENCODING_ERROR : 0;
|
||||
}
|
||||
|
||||
if(putData)
|
||||
{
|
||||
if (!err) {
|
||||
if (putData) {
|
||||
/* BER Encode the the tag and data */
|
||||
err = (ber_printf(requestBer, "oio}", utf8TagPtr, utf8TagSize, putDataLen, putData, putDataLen) < 0) ? LDAP_ENCODING_ERROR : 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
err = (ber_printf(requestBer, "oio}", utf8TagPtr,
|
||||
utf8TagSize, putDataLen, putData,
|
||||
putDataLen) < 0)
|
||||
? LDAP_ENCODING_ERROR : 0;
|
||||
} else {
|
||||
/* BER Encode the the tag */
|
||||
err = (ber_printf(requestBer, "o}", utf8TagPtr, utf8TagSize) < 0) ? LDAP_ENCODING_ERROR : 0;
|
||||
err = (ber_printf(requestBer, "o}", utf8TagPtr,
|
||||
utf8TagSize) < 0)
|
||||
? LDAP_ENCODING_ERROR : 0;
|
||||
}
|
||||
}
|
||||
|
||||
if (err)
|
||||
|
Loading…
Reference in New Issue
Block a user