changeset 58:8d311fd1138b

libsip/grok_from.c: fix bug
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 08 Sep 2022 14:38:29 -0800
parents d61d0136f6a5
children bea761629c5b
files libsip/grok_from.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libsip/grok_from.c	Thu Sep 08 13:39:42 2022 -0800
+++ b/libsip/grok_from.c	Thu Sep 08 14:38:29 2022 -0800
@@ -92,8 +92,11 @@
 				return(-1);
 		case '<':
 			return(-1);
+		default:
+			cp++;
+			continue;
 		}
-		cp++;
+		break;
 	}
 	gfr->uri_len = cp - gfr->uri;
 	return(0);