Of course, the commit message was somewhat short.
@@ -1106,7 +1106,7 @@ tofu_callback(enum tofu_error error, const char*fingerprint,
- snprintf(prompt, sizeof(prompt),
"The certificate offered by this server DOES NOT MATCH the one we have on
Actually show the message to the user with fprintf.
The "prompt" variable put togehter with snprintf is only used when reaching
line 1040 which in this case isn't reached due the return in line 1035.
The user ends up with a simple "Error: certificate is untrusted"
The adjustment in tofu.c ensures that the correct line number (line 1032 in gmnlm.c) is shown
if the TOFU_FINGERPRINT_MISMATCH is hit.
It only showed :0 before.