Pull from CVS head: attributes of type 'int' require a value
authorphampson <phampson>
Tue, 16 Sep 2003 18:40:56 +0000 (18:40 +0000)
committerphampson <phampson>
Tue, 16 Sep 2003 18:40:56 +0000 (18:40 +0000)
doc/ChangeLog
src/modules/rlm_mschap/rlm_mschap.c

index 819d2cb..f519db2 100644 (file)
@@ -1,5 +1,6 @@
 FreeRADIUS 0.9.2 ; Date: $Date$, urgency=low
        * Fix compilation of rlm_counter when not building with pthreads
+       * Fix segfault due to poorly initialised value in rlm_mschap
 
 FreeRADIUS 0.9.1 ; Date: 2003/09/04 14:56:34, urgency=low
 
index dfc46d5..89a4f41 100644 (file)
@@ -620,7 +620,7 @@ static int mschap_authenticate(void * instance, REQUEST *request)
                password = pairfind(request->config_items,
                                    PW_SMB_ACCOUNT_CTRL_TEXT);
                if (password) {
-                       smb_ctrl = pairmake("SMB-Account-CTRL", "", T_OP_SET);
+                       smb_ctrl = pairmake("SMB-Account-CTRL", "0", T_OP_SET);
                        pairadd(&request->config_items, smb_ctrl);
                        smb_ctrl->lvalue = pdb_decode_acct_ctrl(password->strvalue);
                }