-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PSK is not enabled unless psk_hint is specified. #2560
Comments
You're quite right that the redundant I'm closing this issue because I think I've addressed it sufficiently to answer what you need. I'm trying to close issues like this to get on top of the issues list. If there is still something left to do on this issue, please reopen it and give more details. |
On the
develop
branch this configuration will not enable PSK unless thepsk_hint
line is uncommented:I think this is a bug because of this code:
mosquitto/src/net.c
Lines 935 to 950 in 29f49bf
The condition on line 942 is redundant because it is nested in an identical condition from line 935, and the code between those lines does not mutate
listener->psk_hint
as far as I can tell.I think the intent was for line 935 to be something along the lines of
if (listener->psk_file){
, but I could not find an appropriate member in themosquitto__listener
struct.The text was updated successfully, but these errors were encountered: