]> git.ozlabs.org Git - ppp.git/commitdiff
Stop it dumping random data to syslog on plugin version mismatch.
authorRussell Coker <russell@coker.com.au>
Fri, 11 Jan 2002 18:11:51 +0000 (18:11 +0000)
committerRussell Coker <russell@coker.com.au>
Fri, 11 Jan 2002 18:11:51 +0000 (18:11 +0000)
pppd/options.c

index acba28965b1032917aecad3a5fd2c3f1351b55ed..3c1a2950f7cd998f42e83e157fb6954300f78bb4 100644 (file)
@@ -17,7 +17,7 @@
  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  */
 
  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  */
 
-#define RCSID  "$Id: options.c,v 1.80 2001/03/12 22:56:12 paulus Exp $"
+#define RCSID  "$Id: options.c,v 1.81 2002/01/11 18:11:51 etbe Exp $"
 
 #include <ctype.h>
 #include <stdio.h>
 
 #include <ctype.h>
 #include <stdio.h>
@@ -1496,7 +1496,7 @@ loadplugin(argv)
        warn("Warning: plugin %s has no version information", arg);
     } else if (strcmp(vers, VERSION) != 0) {
        option_error("Plugin %s is for pppd version %s, this is %s",
        warn("Warning: plugin %s has no version information", arg);
     } else if (strcmp(vers, VERSION) != 0) {
        option_error("Plugin %s is for pppd version %s, this is %s",
-                    vers, VERSION);
+                    arg, vers, VERSION);
        goto errclose;
     }
     info("Plugin %s loaded.", arg);
        goto errclose;
     }
     info("Plugin %s loaded.", arg);