Changeset 719:dc71992e3378 in freeDiameter
- Timestamp:
- Feb 21, 2011, 6:29:14 PM (13 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libfdproto/ostr.c
r717 r719 316 316 317 317 if (t >= (1<<16)) { 318 TRACE_DEBUG(INFO, "Invalid DiameterURI: port value is too big, ignored."); 319 p = 0; 320 break; 318 TRACE_DEBUG(INFO, "Invalid DiameterURI: port value is too big."); 319 return EINVAL; 321 320 } 322 321 … … 366 365 } 367 366 368 TRACE_DEBUG(INFO, "Invalid DiameterURI: transport string is not recognized ('%.*s'), ignored.", urisz - offset, uri + offset); 369 370 /* eat the remaining of invalid transport until a ';' */ 371 for (; (offset < urisz) && ((char)uri[offset] != ';'); offset++); 367 TRACE_DEBUG(INFO, "Invalid DiameterURI: transport string is not recognized ('%.*s').", urisz - offset, uri + offset); 368 return EINVAL; 372 369 } 373 370 after_transport: … … 405 402 } 406 403 407 TRACE_DEBUG(INFO, "Invalid DiameterURI: protocol string is not recognized ('%.*s'), ignored.", urisz - offset, uri + offset); 408 409 /* eat the remaining of invalid transport until a ';' */ 410 for (; (offset < urisz) && ((char)uri[offset] != ';'); offset++); 404 TRACE_DEBUG(INFO, "Invalid DiameterURI: protocol string is not recognized ('%.*s').", urisz - offset, uri + offset); 405 return EINVAL; 406 411 407 } 412 408 after_proto: … … 414 410 return 0; /* Finished */ 415 411 416 TRACE_DEBUG(INFO, "Invalid DiameterURI: string is not recognized ('%.*s'), ignored.", urisz - offset, uri + offset);417 return 0;412 TRACE_DEBUG(INFO, "Invalid DiameterURI: final part of string is not recognized ('%.*s').", urisz - offset, uri + offset); 413 return EINVAL; 418 414 } 419 415
Note: See TracChangeset
for help on using the changeset viewer.