Changes in libfdproto/dictionary_functions.c [1300:3f1e79e1273e:1284:38e4a7c318ac] in freeDiameter
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libfdproto/dictionary_functions.c
r1300 r1284 359 359 } 360 360 361 /* Check that a given AVP value contains all the characters from data in the same order */362 static char error_message[80];363 int fd_dictfct_CharInOS_check(void * data, union avp_value * val, char ** error_msg)364 {365 char * inChar = data;366 char * inData = (char *)val->os.data;367 int i = 0;368 CHECK_PARAMS(data);369 while (*inChar != '\0') {370 while (i < val->os.len) {371 if (*inChar == inData[i++]) {372 inChar++;373 break;374 }375 }376 if (i >= val->os.len)377 break;378 }379 if (*inChar == '\0')380 return 0;381 382 if (error_msg) {383 snprintf(error_message, sizeof(error_message), "Could not find '%c' in AVP", *inChar);384 *error_msg = error_message;385 }386 return EBADMSG;387 }
Note: See TracChangeset
for help on using the changeset viewer.