Skip to content

Commit

Permalink
udploger: fixed BUG when n=0
Browse files Browse the repository at this point in the history
  • Loading branch information
mbhangui committed Jun 16, 2024
1 parent f20b00b commit 4b0328b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions indimail-mta-x/doc/ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ Release @version@-@release@ Start 05/02/2024 End XX/XX/XXXX
17. svctool: added --sysconfdir for indisrvr service creation
- 31/05/2024
18. indimail-mta.spec.in: remove glibc-static in buildrequires for mageia
- 16/06/2024
19. udplogger.c: BUG: fixed SIGFPE when n=0

* Sun Mar 03 2024 12:20:15 +0000 Manvendra Bhangui <indimail-mta@indimail.org> 3.0.7-1.1%{?dist}
Release 3.0.7-1.1 Start 02/01/2024 End 03/02/2024
Expand Down
7 changes: 6 additions & 1 deletion indimail-mta-x/udplogger.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
/*
* $Log: udplogger.c,v $
* Revision 1.9 2024-06-16 21:28:19+05:30 Cprogrammer
* set n=MAXLOGDATASIZE as default
*
* Revision 1.8 2024-05-09 22:03:17+05:30 mbhangui
* fix discarded-qualifier compiler warnings
*
Expand Down Expand Up @@ -349,6 +352,8 @@ main(int argc, char **argv)
else
break;
}
if (!n)
n = MAXLOGDATASIZE;
if ((rdata_len < n || rdata_len/n > 2) && !(rdata = (char *) realloc(rdata, (rdata_len = n))))
die_nomem();
#else
Expand Down Expand Up @@ -399,7 +404,7 @@ main(int argc, char **argv)
void
getversion_udplogger_c()
{
const char *x = "$Id: udplogger.c,v 1.8 2024-05-09 22:03:17+05:30 mbhangui Exp mbhangui $";
const char *x = "$Id: udplogger.c,v 1.9 2024-06-16 21:28:19+05:30 Cprogrammer Exp mbhangui $";

x++;
}

0 comments on commit 4b0328b

Please sign in to comment.