s4:kdc: fix calculation of the rodc kvno
commit0c78640e674914d3ee7e8233813ee91a44f16440
authorStefan Metzmacher <metze@samba.org>
Fri, 4 Mar 2011 15:12:29 +0000 (4 16:12 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 4 Mar 2011 20:19:05 +0000 (4 21:19 +0100)
treee9cd57cab2f7ef624af5286484958d5851163c3a
parenta511d37d83be3bf47440527ad2b54fd124ba97a5
s4:kdc: fix calculation of the rodc kvno

Bit shifting is non-trivial in C:-)

This

int32_t a = 0x12340000;
uint32_t b = (a >> 16);

results in 0x00001234, but this

int32_t a = 0xEDCB0000;
uint32_t b = (a >> 16);

results in 0xFFFFEDCB, while we expected 0x0000EDCB.

metze
source4/kdc/db-glue.c