mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-05-20 15:02:27 +02:00
2021-06-01 Fred Gleason <fredg@paravelsystems.com>
* Cleaned up compile warnings in 'lib/rduser.cpp'. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
parent
9f517d6176
commit
396ae6b8b5
@ -21794,3 +21794,5 @@
|
|||||||
* Cleaned up compile warnings in 'lib/rdupload.cpp'.
|
* Cleaned up compile warnings in 'lib/rdupload.cpp'.
|
||||||
2021-06-01 Fred Gleason <fredg@paravelsystems.com>
|
2021-06-01 Fred Gleason <fredg@paravelsystems.com>
|
||||||
* Cleaned up compile warnings in 'lib/rdunixsocket.cpp'.
|
* Cleaned up compile warnings in 'lib/rdunixsocket.cpp'.
|
||||||
|
2021-06-01 Fred Gleason <fredg@paravelsystems.com>
|
||||||
|
* Cleaned up compile warnings in 'lib/rduser.cpp'.
|
||||||
|
@ -675,7 +675,7 @@ bool RDUser::createTicket(QString *ticket,QDateTime *expire_dt,
|
|||||||
for(int i=0;i<5;i++) {
|
for(int i=0;i<5;i++) {
|
||||||
long r=random();
|
long r=random();
|
||||||
unsigned ipv4_addr=client_addr.toIPv4Address();
|
unsigned ipv4_addr=client_addr.toIPv4Address();
|
||||||
snprintf(rawstr+i*8,8,"%c%c%c%c%c%c%c%c",
|
snprintf(rawstr+i*8,9,"%c%c%c%c%c%c%c%c",
|
||||||
0xff&((int)r>>24),0xff&(ipv4_addr>>24),
|
0xff&((int)r>>24),0xff&(ipv4_addr>>24),
|
||||||
0xff&((int)r>>16),0xff&(ipv4_addr>>16),
|
0xff&((int)r>>16),0xff&(ipv4_addr>>16),
|
||||||
0xff&((int)r>>8),0xff&(ipv4_addr>>8),
|
0xff&((int)r>>8),0xff&(ipv4_addr>>8),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user