]> jfr.im git - irc/rqf/shadowircd.git/commitdiff
newconf: fix certificate fingerprint auth.
authorElizabeth Jennifer Myers <redacted>
Sun, 23 Jan 2011 21:12:32 +0000 (16:12 -0500)
committerElizabeth Jennifer Myers <redacted>
Sun, 23 Jan 2011 21:12:32 +0000 (16:12 -0500)
yy_oper->certfp was not copied into yy_tmpoper->certfp, thus the information was lost and certfp auth was never really working, since the string was always empty.

src/newconf.c

index 310eeaf1efe6c08771831c6e8d6995e8a5ca777f..ee01eca0931ed4d5fe835a965f492b2a4c4efd28 100644 (file)
@@ -626,6 +626,9 @@ conf_end_oper(struct TopConf *tc)
                                return 0;
                        }
                }
+
+               if(!EmptyString(yy_oper->certfp))
+                       yy_tmpoper->certfp = yy_oper->certfp;
 #endif
 
                /* all is ok, put it on oper_conf_list */