bozo: fix overrun from -rxbind on restart
authorMichael Meffie <mmeffie@sinenomine.net>
Mon, 26 Sep 2011 15:59:55 +0000 (11:59 -0400)
committerJeffrey Altman <jaltman@openafs.org>
Mon, 26 Sep 2011 16:26:58 +0000 (09:26 -0700)
Fix buffer overrun in bosctlsrv introduced
by commit 544ff1b295a57b50afefa6146094434db7608355

Change-Id: Icb39b5107113e2819a643537b042b20504c783f3
Reviewed-on: http://gerrit.openafs.org/5504
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: Jeffrey Altman <jaltman@openafs.org>

src/WINNT/bosctlsvc/bosctlsvc.c

index b5fe2c5..475d7ac 100644 (file)
@@ -35,7 +35,7 @@
 
 #define BOSSERVER_STARTMSG_EXE  "afslegal.exe"
 
-#define BOSSERVER_RESTART_ARG_MAX  2  /* "-noauth", "-log" */
+#define BOSSERVER_RESTART_ARG_MAX  3  /* "-noauth", "-log", "-rxbind" */
 #define BOSSERVER_WAIT_TIME_HINT  60  /* seconds */
 #define BOSSERVER_STOP_TIME_MAX  (FSSDTIME + 60)  /* seconds */