[srvx-bugs] [ srvx-Bugs-2672922 ] Wrong account stamp parsing
Brought to you by:
entrope
From: SourceForge.net <no...@so...> - 2009-03-08 19:33:08
|
Bugs item #2672922, was opened at 2009-03-08 20:32 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403001&aid=2672922&group_id=31654 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: ircu protocol Group: 1.4 Status: Open Resolution: None Priority: 5 Private: No Submitted By: David Herrmann (dvdhrm) Assigned to: Entrope (entrope) Summary: Wrong account stamp parsing Initial Comment: The srvx incorrectly parse an account with a timestamp in a mode change. They parse the timestamp but do not set the pointer correctly to the next value. The following patch fixes this bug: Index: src/proto-p10.c =================================================================== --- src/proto-p10.c (revision 184) +++ src/proto-p10.c (working copy) @@ -2302,9 +2302,11 @@ ts = strtoul(word + 1, &sep, 10); if (*sep == ':') { id = strtoul(word + 1, &sep, 10); + word = sep; } else if (*sep != ' ' && *sep != '\0') { ts = 0; } + else word = sep; } tag[ii] = '\0'; while (*word == ' ') ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403001&aid=2672922&group_id=31654 |