|
@@ -361,7 +361,7 @@ int acc_radius_send_request(struct sip_msg *req, acc_info_t *inf)
|
|
tsecmicro = inf->env->tv.tv_sec
|
|
tsecmicro = inf->env->tv.tv_sec
|
|
+ ((double)inf->env->tv.tv_usec / 1000000.0);
|
|
+ ((double)inf->env->tv.tv_usec / 1000000.0);
|
|
//radius client doesn t support double so convert it
|
|
//radius client doesn t support double so convert it
|
|
- sprintf(smicrosec, "%17.6f", tsecmicro);
|
|
|
|
|
|
+ snprintf(smicrosec, 18, "%17.6f", tsecmicro);
|
|
ADD_RAD_AVPAIR(RA_TIME_STAMP, &smicrosec, -1);
|
|
ADD_RAD_AVPAIR(RA_TIME_STAMP, &smicrosec, -1);
|
|
} else {
|
|
} else {
|
|
av_type = (uint32_t)inf->env->ts;
|
|
av_type = (uint32_t)inf->env->ts;
|