diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2007-03-01 11:44:26 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2007-03-01 11:44:26 +0000 |
commit | ec134eaa3ef4e8e96760daa6383c66d044d79c20 (patch) | |
tree | 423e89df6e54a7d2b708e54b8d7eda584697a29a /benchmarks/sipp/files | |
parent | 2d370ba4c7a2f8c0039511dbdecb8ed7b288a2a4 (diff) | |
download | ports-ec134eaa3ef4e8e96760daa6383c66d044d79c20.tar.gz ports-ec134eaa3ef4e8e96760daa6383c66d044d79c20.zip |
Notes
Diffstat (limited to 'benchmarks/sipp/files')
-rw-r--r-- | benchmarks/sipp/files/patch-call.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/benchmarks/sipp/files/patch-call.cpp b/benchmarks/sipp/files/patch-call.cpp new file mode 100644 index 000000000000..3a8651d50f70 --- /dev/null +++ b/benchmarks/sipp/files/patch-call.cpp @@ -0,0 +1,24 @@ +$FreeBSD$ + +--- call.cpp.orig Tue Jan 23 20:02:26 2007 ++++ call.cpp Fri Feb 9 01:49:46 2007 +@@ -2216,13 +2216,17 @@ + + auth_marker = src; + auth_marker_len = strchr(src, ']') - src; +- strcpy(my_auth_user, service); +- strcpy(my_auth_pass, auth_password); + /* Look for optional username and password parameters */ + /* add aka_OP, aka_AMF, aka_K */ + key = getKeywordParam(src, "username=", my_auth_user); ++ if (my_auth_user[0]==0){ ++ strcpy(my_auth_user, service); ++ } + memset(my_auth_pass,0,KEYWORD_SIZE); + key = getKeywordParam(src, "password=", my_auth_pass); ++ if (my_auth_pass[0]==0){ ++ strcpy(my_auth_pass, auth_password); ++ } + memset(my_aka_OP,0,KEYWORD_SIZE); + key = getKeywordParam(src, "aka_OP=", my_aka_OP); + memset(my_aka_AMF,0,KEYWORD_SIZE); |