|
Lines 257-275
Link Here
|
| 257 |
return -1; |
257 |
return -1; |
| 258 |
} |
258 |
} |
| 259 |
|
259 |
|
| 260 |
if (pthread_mutex_init(&(inst->handler_mutex), NULL) < 0) { |
|
|
| 261 |
radlog(L_ERR|L_CONS, "rlm_eap: Failed initializing mutex: %s", strerror(errno)); |
| 262 |
eap_detach(inst); |
| 263 |
return -1; |
| 264 |
} |
| 265 |
} |
260 |
} |
| 266 |
|
|
|
| 267 |
if (pthread_mutex_init(&(inst->session_mutex), NULL) < 0) { |
| 268 |
radlog(L_ERR|L_CONS, "rlm_eap: Failed initializing mutex: %s", strerror(errno)); |
| 269 |
eap_detach(inst); |
| 270 |
return -1; |
| 271 |
} |
| 272 |
|
| 273 |
*instance = inst; |
261 |
*instance = inst; |
| 274 |
return 0; |
262 |
return 0; |
| 275 |
} |
263 |
} |