patch-scaffold_c 709 B

123456789101112131415161718192021222324252627
  1. --- tcp_wrappers_7.6.orig/scaffold.c 1997-03-21 19:27:24.000000000 +0100
  2. +++ tcp_wrappers_7.6/scaffold.c 2010-11-11 20:08:39.264995798 +0100
  3. @@ -25,7 +25,7 @@ static char sccs_id[] = "@(#) scaffold.c
  4. #define INADDR_NONE (-1) /* XXX should be 0xffffffff */
  5. #endif
  6. -extern char *malloc();
  7. +//extern char *malloc();
  8. /* Application-specific. */
  9. @@ -180,10 +180,12 @@ struct request_info *request;
  10. /* ARGSUSED */
  11. -void rfc931(request)
  12. -struct request_info *request;
  13. +void rfc931(rmt_sin, our_sin, dest)
  14. +struct sockaddr_in *rmt_sin;
  15. +struct sockaddr_in *our_sin;
  16. +char *dest;
  17. {
  18. - strcpy(request->user, unknown);
  19. + strcpy(dest, unknown);
  20. }
  21. /* check_path - examine accessibility */