diff libsip/grok_from.c @ 58:8d311fd1138b

libsip/grok_from.c: fix bug
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 08 Sep 2022 14:38:29 -0800
parents 36a30349b490
children
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);