krb5 commit [krb5-1.20]: Fix kpropd crash with unrecognized option

ghudson at mit.edu ghudson at mit.edu
Tue Jul 11 18:56:22 EDT 2023


https://github.com/krb5/krb5/commit/50f36406224533e15a796034a7d2301859e83635
commit 50f36406224533e15a796034a7d2301859e83635
Author: abushwang <wangshuo_1994 at foxmail.com>
Date:   Wed Dec 28 15:06:02 2022 +0800

    Fix kpropd crash with unrecognized option
    
    (cherry picked from commit d0ea8de883a2487dfde8bfa377b64df1194ed5cb)
    
    ticket: 9083
    version_fixed: 1.20.2

 src/kprop/kpropd.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/kprop/kpropd.c b/src/kprop/kpropd.c
index f2341d720..aa3c81ea3 100644
--- a/src/kprop/kpropd.c
+++ b/src/kprop/kpropd.c
@@ -1047,6 +1047,7 @@ parse_args(int argc, char **argv)
     enum { PID_FILE = 256 };
     struct option long_options[] = {
         { "pid-file", 1, NULL, PID_FILE },
+        { NULL, 0, NULL, 0 },
     };
 
     memset(&params, 0, sizeof(params));


More information about the cvs-krb5 mailing list