Skip to content

Commit

Permalink
queue-fix.c: bug - tcpto buffer size was unitialized
Browse files Browse the repository at this point in the history
  • Loading branch information
mbhangui committed Sep 1, 2024
1 parent 73f0568 commit e2499f8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
2 changes: 2 additions & 0 deletions indimail-mta-x/doc/ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
Release @version@-@release@ Start 08/08/2024 End XX/XX/XXXX
- 08/08/2024
1. svctool: fixed mariadb db creation for mariadb 11.x on archlinux
- 01/09/2024
2. queue-fix.c: bug - tcpto buffer size was unitialized

* Tue Aug 06 2024 12:51:02 +0000 Manvendra Bhangui <indimail-mta@indimail.org> 3.0.8-1.1%{?dist}
Release @version@-@release@ Start 05/02/2024 End XX/XX/XXXX
Expand Down
13 changes: 8 additions & 5 deletions indimail-mta-x/queue-fix.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*-
* $Id: queue-fix.c,v 1.34 2024-05-09 22:03:17+05:30 mbhangui Exp mbhangui $
* $Id: queue-fix.c,v 1.35 2024-09-01 08:19:59+05:30 Cprogrammer Exp mbhangui $
*
* adapted from queue-fix 1.4
* by Eric Huss
Expand Down Expand Up @@ -96,14 +96,14 @@ usage()

strnum1[fmt_int(strnum1, split)] = 0;
strnum2[fmt_int(strnum2, bigtodo)] = 0;
strnum2[fmt_uint(strnum2, TCPTO_BUFSIZ)] = 0;
strnum3[fmt_uint(strnum3, TCPTO_BUFSIZ)] = 0;
strerr_warn8(WARN,
"usage: queue-fix [-irmNv] [-s split] queue_dir\n"
" -s split - where split = queue split number (default ", strnum1,
" -s split - where split = queue split number (default ", strnum1,
")\n"
" -b 0|1 - 0 for no big todo, 1 for big todo (default ", strnum2,
")\n"
" -S size - where size = tcpto buffer size (default ", strnum3,
" -S size - where size = tcpto buffer size (default ", strnum3,
")\n"
" -i - Interactive Mode\n"
" -r - create ratelimit directory\n"
Expand Down Expand Up @@ -1135,13 +1135,16 @@ main(int argc, char **argv)
void
getversion_queue_fix_c()
{
const char *x = "$Id: queue-fix.c,v 1.34 2024-05-09 22:03:17+05:30 mbhangui Exp mbhangui $";
const char *x = "$Id: queue-fix.c,v 1.35 2024-09-01 08:19:59+05:30 Cprogrammer Exp mbhangui $";

x++;
}

/*
* $Log: queue-fix.c,v $
* Revision 1.35 2024-09-01 08:19:59+05:30 Cprogrammer
* bug - tcpto buffer size was unitialized
*
* Revision 1.34 2024-05-09 22:03:17+05:30 mbhangui
* fix discarded-qualifier compiler warnings
*
Expand Down

0 comments on commit e2499f8

Please sign in to comment.