summaryrefslogtreecommitdiffstats
path: root/src/handshake.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-10-31 01:03:48 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-10-31 01:03:48 +0100
commit763401c89d4f1dd328a5b4b3efae91f076043549 (patch)
treec60fa9eb54cc79e407f684c7eddc17deeac91a45 /src/handshake.c
parent467d1f15ea8e89190c52c265e7e0f11bd616257b (diff)
downloadfastd-763401c89d4f1dd328a5b4b3efae91f076043549.tar
fastd-763401c89d4f1dd328a5b4b3efae91f076043549.zip
Change error subcode for unsupported method from method name to method list
When two peers don't support a common method, fastd should notice this in the list stage, so the method list subcode is correct. The method name subcode was a legacy of the 0.4 compatiblity code.
Diffstat (limited to 'src/handshake.c')
-rw-r--r--src/handshake.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/handshake.c b/src/handshake.c
index 34807fa..09a197a 100644
--- a/src/handshake.c
+++ b/src/handshake.c
@@ -347,7 +347,7 @@ void fastd_handshake_handle(fastd_context_t *ctx, fastd_socket_t *sock, const fa
}
if (handshake.type > 1 && !method) {
- send_error(ctx, sock, local_addr, remote_addr, peer, &handshake, REPLY_UNACCEPTABLE_VALUE, RECORD_METHOD_NAME);
+ send_error(ctx, sock, local_addr, remote_addr, peer, &handshake, REPLY_UNACCEPTABLE_VALUE, RECORD_METHOD_LIST);
goto end_free;
}