Fixed a buffer size issue.
authorTransNexus OSP Development <support@transnexus.com>
Fri, 19 Oct 2007 01:56:47 +0000 (01:56 +0000)
committerTransNexus OSP Development <support@transnexus.com>
Fri, 19 Oct 2007 01:56:47 +0000 (01:56 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@86439 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_osplookup.c

index 5c4e240..44f85b0 100644 (file)
@@ -520,8 +520,8 @@ static int osp_validate_token(
        int res;
        int tokenlen;
        unsigned char tokenstr[OSP_TOKSTR_SIZE];
-       char src[OSP_TOKSTR_SIZE];
-       char dst[OSP_TOKSTR_SIZE];
+       char src[OSP_NORSTR_SIZE];
+       char dst[OSP_NORSTR_SIZE];
        unsigned int authorised;
        unsigned int dummy = 0;
        int error;