svn commit: samba r17984 - in branches/SAMBA_3_0/source/utils: .
jra at samba.org
jra at samba.org
Fri Sep 1 04:41:05 GMT 2006
Author: jra
Date: 2006-09-01 04:41:03 +0000 (Fri, 01 Sep 2006)
New Revision: 17984
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=17984
Log:
Ensure we never indirect a null opt_username if it wasn't
specified.
Jeremy.
Modified:
branches/SAMBA_3_0/source/utils/ntlm_auth.c
Changeset:
Modified: branches/SAMBA_3_0/source/utils/ntlm_auth.c
===================================================================
--- branches/SAMBA_3_0/source/utils/ntlm_auth.c 2006-09-01 04:37:31 UTC (rev 17983)
+++ branches/SAMBA_3_0/source/utils/ntlm_auth.c 2006-09-01 04:41:03 UTC (rev 17984)
@@ -811,6 +811,11 @@
NTSTATUS nt_status;
BOOL first = False;
+ if (!opt_username || !*opt_username) {
+ x_fprintf(x_stderr, "username must be specified!\n\n");
+ exit(1);
+ }
+
if (strlen(buf) < 2) {
DEBUG(1, ("NTLMSSP query [%s] invalid", buf));
x_fprintf(x_stdout, "BH\n");
@@ -1506,6 +1511,11 @@
SPNEGO_DATA spnego;
ssize_t len;
+ if (!opt_username || !*opt_username) {
+ x_fprintf(x_stderr, "username must be specified!\n\n");
+ exit(1);
+ }
+
if (strlen(buf) <= 3) {
DEBUG(1, ("SPNEGO query [%s] too short\n", buf));
x_fprintf(x_stdout, "BH\n");
More information about the samba-cvs
mailing list