patch-resume_c 659 B

12345678910111213141516171819202122232425
  1. $OpenBSD: patch-resume_c,v 1.1 2002/08/10 01:14:04 naddy Exp $
  2. --- resume.c.orig Tue Mar 6 00:49:53 2001
  3. +++ resume.c Mon Oct 1 12:06:34 2001
  4. @@ -17,8 +17,8 @@ HANDLER (resume)
  5. {
  6. #if RESUME
  7. char *av[2];
  8. - FLIST *flist;
  9. - LIST *ptr;
  10. + FileList *flist;
  11. + DList *ptr;
  12. DATUM *d;
  13. int fsize;
  14. #endif /* RESUME */
  15. @@ -41,6 +41,9 @@ HANDLER (resume)
  16. send_cmd (con, MSG_SERVER_NOSUCH, "invalid file size");
  17. return;
  18. }
  19. +
  20. + /* md5 value is stored using all lowercase hex */
  21. + strlower (av[0]);
  22. /* search the database for a list of all files which match this hash */
  23. flist = hash_lookup (MD5, av[0]);