openac: Fixed potential overflow while reading passphrase.
authorTobias Brunner <tobias@strongswan.org>
Tue, 19 Apr 2011 11:34:18 +0000 (13:34 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 19 Apr 2011 11:48:51 +0000 (13:48 +0200)
src/openac/openac.c

index 086db9e..e535675 100755 (executable)
@@ -327,7 +327,7 @@ int main(int argc, char **argv)
                                continue;
 
                        case 'p':       /* --key */
-                               if (strlen(optarg) > BUF_LEN)
+                               if (strlen(optarg) >= BUF_LEN)
                                {
                                        usage("passphrase too long");
                                        goto end;