- Notifications
You must be signed in to change notification settings - Fork5
Commit00707fa
committed
Minor cleanup of backend SCRAM code.
Free each SASL message after sending it. It's not a lot of wasted memory,and it's short-lived, but the authentication code in general tries topfree() stuff, so let's follow the example.Adding the pfree() revealed a little bug in build_server_first_message().It attempts to keeps a copy of the sent message, but it was missing apstrdup(), so the pointer started to dangle, after adding the pfree()into CheckSCRAMAuth().Reword comments and debug messages slightly, while we're at it.Reviewed by Michael Paquier.Discussion:https://www.postgresql.org/message-id/6490b975-5ee1-6280-ac1d-af975b19fb9a@iki.fi1 parent3d5facf commit00707fa
2 files changed
+12
-10
lines changedLines changed: 5 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
161 | 161 |
| |
162 | 162 |
| |
163 | 163 |
| |
164 |
| - | |
165 |
| - | |
166 |
| - | |
167 |
| - | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
168 | 168 |
| |
169 | 169 |
| |
170 | 170 |
| |
| |||
984 | 984 |
| |
985 | 985 |
| |
986 | 986 |
| |
987 |
| - | |
| 987 | + | |
988 | 988 |
| |
989 | 989 |
| |
990 | 990 |
| |
|
Lines changed: 7 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
872 | 872 |
| |
873 | 873 |
| |
874 | 874 |
| |
| 875 | + | |
| 876 | + | |
875 | 877 |
| |
876 | 878 |
| |
877 | 879 |
| |
| |||
880 | 882 |
| |
881 | 883 |
| |
882 | 884 |
| |
883 |
| - | |
884 |
| - | |
885 | 885 |
| |
886 | 886 |
| |
887 | 887 |
| |
| |||
918 | 918 |
| |
919 | 919 |
| |
920 | 920 |
| |
921 |
| - | |
| 921 | + | |
922 | 922 |
| |
923 | 923 |
| |
924 | 924 |
| |
| |||
931 | 931 |
| |
932 | 932 |
| |
933 | 933 |
| |
934 |
| - | |
| 934 | + | |
935 | 935 |
| |
936 | 936 |
| |
937 | 937 |
| |
938 | 938 |
| |
939 |
| - | |
| 939 | + | |
940 | 940 |
| |
941 | 941 |
| |
| 942 | + | |
| 943 | + | |
942 | 944 |
| |
943 | 945 |
| |
944 | 946 |
| |
|
0 commit comments
Comments
(0)