0001-Avoid-timeout-set-to-zero-in-authorization.patch
| include/AuthManager.h | ||
|---|---|---|
| 372 | 372 |
}; |
| 373 | 373 | |
| 374 | 374 |
/** |
| 375 |
* Wait for the AuthRequest to be completed
|
|
| 375 |
* Set the timeout for this request
|
|
| 376 | 376 |
*/ |
| 377 |
void wait()
|
|
| 377 |
void set_timeout()
|
|
| 378 | 378 |
{
|
| 379 | 379 |
time_out = time(0) + AuthManager::time_out(); |
| 380 |
} |
|
| 380 | 381 | |
| 382 |
/** |
|
| 383 |
* Wait for the AuthRequest to be completed |
|
| 384 |
*/ |
|
| 385 |
void wait() |
|
| 386 |
{
|
|
| 381 | 387 |
am.loop(0,0); |
| 382 | 388 |
}; |
| 383 | 389 | |
| src/um/UserPool.cc | ||
|---|---|---|
| 257 | 257 |
} |
| 258 | 258 |
else //use the driver |
| 259 | 259 |
{
|
| 260 |
ar.set_timeout(); |
|
| 260 | 261 |
authm->trigger(AuthManager::AUTHENTICATE,&ar); |
| 261 | 262 |
ar.wait(); |
| 262 | 263 | |
| ... | ... | |
| 337 | 338 |
} |
| 338 | 339 |
else |
| 339 | 340 |
{
|
| 340 |
authm->trigger(AuthManager::AUTHORIZE,&ar); |
|
| 341 |
ar.set_timeout(); |
|
| 342 |
authm->trigger(AuthManager::AUTHORIZE,&ar); |
|
| 341 | 343 |
ar.wait(); |
| 342 | 344 | |
| 343 | 345 |
if (ar.result==true) |
| 344 |
- |
|