openssh-portable
openssh-portable copied to clipboard
Fix DEREF_AFTER_NULL in mm_answer_keyallowed()
After having been compared to a NULL value at monitor.c:1206, pointer 'key' is dereferenced in function auth2_record_key.
Found by RASU JSC.
key=NULL is impossible here as sshkey_froms() won't return a NULL key. I'll look at removing the unnecessary key==NULL checks instead